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).

body {
background: #000 url(background.jpg) left top fixed no-repeat;

@media only all and (max-width: 1024px) and (max-height: 768px)
{body {
-moz-background-size: 1024px 768px;
background-size: 1024px 768px;

Related Posts

CSS3 Image Reflections, CSS3 Body Background Gradient, CSS3 Gradient Background