Resizing Backgrounds

windows

Guest
I came across a site yesterday (unfortunately can't remember where though - Doh!) where the background image resized depending on screen size.<br />
<br />
Any ideas on how to do this - I've a feeling it's something painfully simple that's just alluding at this moment!<!--content-->not too sure on exactly how to resize the background - but here is a script to get the size of window and screen<br />
<br />
<!-- m --><a class="postlink" href="http://www.snippetlibrary.com/viewhtml.php?id=5&kid=20&siteid=39">http://www.snippetlibrary.com/viewhtml. ... &siteid=39</a><!-- m --><!--content-->I suppose you could set an image on the page which was 100% wide and 100% high... <br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"image.gif" width="100%" height="100%" alt="" border="0"><br />
<br />
and then add the rest of your page onto a "layer" that floats over the image....... maybe.<!--content-->
 
Back
Top