Wednesday, May 11, 2011

Full Page Background

Want to get that image to stretch to every edge of the browser window? Chris Couyier at CSS-Tricks came up with the answer:

html {
background: url(images/bg.jpg) no-repeat
center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

http://css-tricks.com/perfect-full-page-background-image/

No comments:

Post a Comment