That's not true. You can set the html element's background...
html {
background: yellow;
}
The reason it doesn't work here is that there is no document.html
property. You either can reference the element via
document.documentElement or just via "html" selector:
$("html").css("background", "
That's because you can't set the background color of the HTML tag. It
doesn't have that attribute. Even if you could do that, one would override
the other.
What you probably want to do is to set the bg of the body tag, then set the
bg of a container INSIDE the body like so:
-Ori
2 matches
Mail list logo