Home › Forums › CSS › changing full page background image in sub pages › Re: changing full page background image in sub pages
June 11, 2013 at 1:29 pm
#138353
polebu
Member
Awesome. Works. Thanks a lot.
Just out of curiosity, the example of css-tricks shows it like this (code in the html selector):
html {
background: url(images/bg.jpg) ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
But you put it in the body selector. What is the difference of these two? Why do both versions work?