Background image full size


/ Published in: CSS
Save to your folder(s)

background image full size centered


Copy this code and paste it in your HTML
  1. body{
  2. background: url("http://img/BG.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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.