On 23 Feb 2011, at 18:29, Kevin A. Cameron wrote: > What's your reason/need to style the html element?
Since all the pages (except one) have a colored background and a white body centered in it, styling the html element is just a way to avoid an extra div. I'm trying to keep the pages as lean as possible. Not always easy. Ellen > On Wed, Feb 23, 2011 at 7:26 AM, Ellen Herzfeld <[email protected]> wrote: > Hello, > > I have found that styling the html element changes the appearance of a tiling > background image on the body element. I suppose this is known, but I didn't > know it until now. > > I've put up two test pages here to demonstrate it, one linking to the other: > > <http://ansible.xlii.org/web_design/htmlelement/test1.html> > > (Tested using Firefox 3.6.13 and Safari 5.0.3 on a Mac) > > It appears that the W3C recommends *not* to style the html element > <http://www.w3.org/TR/2009/CR-CSS2-20090423/colors.html#background>. > > However, on a site I'm working on I found it useful, for most of the pages, > to give the html element a background color. Only on one page did I encounter > a problem because I want a background image to fill the viewport on that page > only and it doesn't. > > I would like to have some opinions on the subject. Especially, are there > other problems that I may run into if I persist in my wicked ways? > > Or should I change my method and stop styling the html element? > > Thanks, > > Ellen ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
