Posted By

nshakin on 11/01/12


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bmayzure
Mench59


CSS3 FullScreen Background Image


 / Published in: CSS
 

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

Fullscreen background image using pure CSS3. Tested and working in FF16, IE9 and Chrome

  1. html {
  2. background: url(../img/your-background-image.jpg) no-repeat center center fixed;
  3. -webkit-background-size: cover;
  4. -moz-background-size: cover;
  5. -o-background-size: cover;
  6. background-size: cover;
  7. }

Report this snippet  

You need to login to post a comment.