windermere
06-05-2005, 08:44 AM
Is there a piece of coding that I can add to a background image that will automatically resize it to full screen?
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Background Images windermere 06-05-2005, 08:44 AM Is there a piece of coding that I can add to a background image that will automatically resize it to full screen? Thanks gizmo 06-05-2005, 03:01 PM Sounds like a job for Javascript. Cheater 06-06-2005, 07:20 AM You could resize the image by hand in an image program, reupload it, then use it as the background. zingmatter 06-06-2005, 09:04 AM What about using CSS? <style type="text/css"> img#bg { position: absolute; width:100%; height:100%; top: 0px; left: 0px; } </style> <body> <img id="bg" src="myimage.jpg" alt=""> You may have to play around with the width and height percentages to get it to fit a little better (or alter the body margins?). Hope this helps windermere 06-06-2005, 09:33 AM thanks for your help. Bright ideas always happen when you've given up and are dropping off to sleep. A little thinking outside the square always helps webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |