JohnyB wrote:
I've come across a weird thing - Gecko browsers in XHTML 1.1 with Content-Type: application/xhtml+xml render the visual style of the body element in a bit different way than without this header
[...]
It looks that the body style is applied only to the content area, not to the whole viewport, as it used to.

Your examples displayed the same, but yes, the issue is a fundamental difference between HTML and XHTML. This is usually referred to as BODY not being "magical" anymore, and it's expected behaviour. See for instance:


"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.xml.com/pub/a/2003/03/19/dive-into-xml.html

--
Patrick H. Lauke
_____________________________________________________
re�dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to