Last Updated: March 08, 2016
·
1.902K
· wensonsmith

Perfect full page background-image

Perfect full page background-image

/* http://css-tricks.com/perfect-full-page-background-image/ */
 html {
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
 }

1 Response
Add your response

You probably don't need all this vendor prefixes anymore, except if you need to support:

  • Firefox 3.6, which current version is 25;
  • Opera 10. Current version is 18;
  • Android Browser 2.3;
over 1 year ago ·