View Full Version : Stretching background images
Jinnifah
07-06-2003, 01:52 AM
How does one take an image (an image smaller than the browser window) and make that background image stretch to 100% of the browser size? **wonders if her question makes ANY sense at all**
Thank you muchly if you can help me.
ReadMe.txt
07-06-2003, 01:21 PM
technically it cant be done, but i'ce come up with a cheeky workaround for you:
<html>
<head>
<title>Stretched Background</title>
</head>
<body style="margin: 0px">
<div style="width: 100%; height: 100%>
<img src="images/bgimage" style="height: 100%; width: 100%; border: 0" alt="" /></div>
<div style="position: relative; top: -100%">
<!-- treat this div as though it is the body -->
</div>
</body>
</html>
it's not been tested but i'm fairly sure that it should work fine.
Nightfire
07-06-2003, 03:35 PM
http://www.codingforums.com/showthread.php?s=&threadid=20731
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.