Click to See Complete Forum and Search --> : background help
javascriptfreak
03-11-2005, 10:36 AM
i have a background, called background.jpg the size=1100x1700(app.)
is there an way i can have the whole image on my page and not the bit that matches in pixels?
Originally posted by javascriptfreak
is there an way i can have the whole image on my page and not the bit that matches in pixels?
Do you mean you want to resize it or you want scrollbars to appear for it so that you can scroll to see the rest?
TheBearMay
03-11-2005, 11:59 AM
This is one way:
<img src="background.jpg" style="height:600px;width:800px;position:absolute;top:0px;left:0px;" />
<div style="position:absolute;top:0px;left:0px">
...
</div>
javascriptfreak
03-12-2005, 12:28 AM
i want to resize it.
i have a background that is pretty huge so everybody can view the page
You can't stretch a background. Perhaps try this...
<body>
<img src="big_image.jpg" width="100%" height="100%" style="position: relative; z-index: -9999">
<!-- The rest of the body -->
</body>
javascriptfreak
03-12-2005, 02:04 AM
thank you.
it works now.