Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS changing full page background image in sub pages Re: changing full page background image in sub pages

#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?