Previous Message
Next Message

background-color oddity with XHTML 1.0 Transitional?

Sent by JohnyB on 16 January 2005 04:04


Yes, I discussed this issue on WSG 
(http://www.mail-archive.com/wsg%40webstandardsgroup.org/msg12103.html) 
-- there are some useful links with more info.

http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html

"4. Also on the subject of CSS, the <body> element is somewhat magical 
in HTML, but not in XML. The technical background is not worth delving 
into; the upshot is that if you define CSS styles on body, you should 
define them on html as well. For example, if you define a background 
color on body, it will apply to the entire page in HTML, but it may not 
in XML. You'll need to define the background on html as well."

http://www.mozilla.org/docs/web-developer/faq.html#xhtmldiff

"CSS works according to the XML+CSS rules. => HTML-specific CSS 
exceptions do not apply. For example, the body element gets no special 
treatment."

-- 
Jan Brasna :: alphanumeric.cz | webcore.cz | designlab.cz | janbrasna.com

Stop IE! - <http://www.stopie.com/> | <http://browsehappy.com/>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: