Oldie but goodie, I know. This question is asked so many times and yet I haven't had a definitive answer. Scalable background image, preferably CSS only, willing to use jQuery in support if it's a must. A problem I've run into a lot (i.e. with CSS3 background-image) is empty space underneath an image when it's height is less than the browser windows height. (example: http://css-tricks.com/examples/ImageToBackgroundImage/)
Here's what I'd like to accomplish:
Here are some examples illustrating these goals (though I think it can be done better):
Thank you, Thank you, Thank you.
You can use something like:
selector {
background: url(bgimage.jpg) no-repeat;
background-size: 100%;
}
but it has browser incompatibilities.
.
Alternative solutions will force you to use HTML.
Examples: