Posted By

gnitter on 08/06/12


Tagged

css image background


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

FlashBuddy
ruijscosta
melaS


Full Background Image in CSS


 / Published in: CSS
 

Full Background Image in CSS

  1. body {
  2. background-image: url('sample.jpg');
  3. background-size: cover;
  4. background-repeat: no-repeat;
  5. background-position: top center;
  6. background-attachment: fixed;
  7. filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='sample.jpg', sizingMethod='scale');
  8. -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='sample.jpg', sizingMethod='scale')";
  9. }

Report this snippet  

You need to login to post a comment.