[jQuery] Re: How to set the HTML background

2009-01-02 Thread Klaus Hartl
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", "

[jQuery] Re: How to set the HTML background

2009-01-02 Thread Andy Matthews
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