CSS3 background-size
The background-size property is already supported by Firefox 3.6 (using the -moz prefix; Firefox 4 will use the regular CSS3 property), Chrome 5, Safari 5, and Opera 10.54; and it will be included in Internet Explorer 9 (it’s already available in Preview 3).
<style>
body {
background: #000 url(background.jpg) left top fixed no-repeat;
-moz-background-size:cover;
background-size:cover;
}
@media only all and (max-width: 1024px) and (max-height: 768px)
{body {
-moz-background-size: 1024px 768px;
background-size: 1024px 768px;
}
}
</style>