Forum Moderators: not2easy
I'm trying to get an image to my background so that it can stretch along with the browser windows size.
The thing is I want the image to keep it's aspect ratio.
e.g.. if the browser window should be 800*300, the image should keep the 800 width so we never stop seeing it, something like 800*600.
Getting the size as 100% width/height, in this case, the image would stretch to 400*300 and leave half the background without image.
Is there a css property like minimum width/height?
Sorry, you can't stretch background images in CSS 2.1 at all.
The future CSS3 might have what you're looking for, but don't hold your breath for it yet: [w3.org...]
I'm not quite sure what you mean by "keeping it's aspect ratio".
(Yes, I know what aspect ratio means.)
It's a background-image right? Takes up the whole background of body or what?
There may be a way to do this but I'm not sure exactly what you're aiming for - got a simple HTML with CSS example?