How do I extend the background over the entire window?


I'm trying to stretch the background to fill the whole window with HTML/CSS.
I've seen a few solutions for this but they don't work.
Every solution i encounter won't work on all the browsers, either Chrome won't stretch it, or IE won't stretch it, and if they both do, firefox will be the problematic one.

Does anyone have a working solution, that will work on all browsers ? (don't mind some javascript)

I believe there is no way to do this without creating an img element, and setting its z-order to the bottom and then customizing the width of that. This page has details.

Edit: In the link it says to use position: fixed;. This will in only work in older versions of IE if you specify a doctype. Using absolute is a simple workaround as long as the element is a direct child of the body.