|
Re: Stretch a picture to fill up the whole background of a webpage?
I understand exactly what you are saying and the best way I can think of is to make two images, same image but different canvas sizes. One 800 by 600 and the other 1024 by 768. Then, use JavaScript to detect the window size and display the appropriate image. Otherwise, use one image, 800 pixels wide, and center it on the page. This will leave a border when viewed in a higher resolution. Those are the closest ways that I can think of.
I think that some CSS properties should be added to allow you to resize a background image, unless there are in CSS2, I don't know.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
|