 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
JJWALL
Joined: 09 Mar 2006
Posts: 1
|
| Posted: Thu Mar 09, 2006 2:50 pm USING AN IMAGE AS A BACKGROUND FOR A WEBSITE |
|
|
Hi there,
Im trying to use an image as a background for my website. I am trying to find a code or command that allows the image to be the same no matter what size the screen (eg 800 x 600, 1024 x 768 etc.) The original image size is 1024 x 800. The site is in html.
Is this possible?
All help much appreciated,
Thanks,
J |
|
|
|
Corey Bryant
Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA
|
| Posted: Fri Mar 10, 2006 4:18 am |
|
|
You cannot. You can use the image and along with CSS, have it not repeat Code:
<style type="text/css">
body
{
background-image: url('images/bakground.gif');
background-repeat: no-repeat
}
</style> You could use JavaScript and create a few different pages though for each resolution, but CSS is usually quicker / easier
_________________
Corey
Loud Commerce | Loud Worx | Toll Free Solutions |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|