DZone depends on you. Login and vote now.
By bloid
via css-tricks.com
Submitted: May 15 2008 / 12:15
My friend Richard recently came to me with a simple CSS question:
Is there a way to make a background image resizeable? As in, fill the background of a web page edge-to-edge with an image, no matter the size of the browser window. Also, have it resize larger or smaller as the browser window changes. Also, make sure it retains its ratio (doesn’t stretch weird). Also, doesn’t cause scrollbars, just cuts off vertically if it needs to. Also, comes in on the page as an inline > tag.
Add your comment