Is there a difference between setting background in css with body or html? Both work.
eg:
body{
background: green;
}
or
html{
background: green;
}
Is there a difference between setting background in css with body or html? Both work.
eg:
body{
background: green;
}
or
html{
background: green;
}
The <html>
background is "behind" the <body>
background. Try this to see what I mean:
html{
background-color:blue;
}
body{
background-color:white;
max-width:400px;
margin:0 auto;
}