Michael Dale wrote:
I've just decided to output application/xhtml+xml to browsers that support it 
(Mozilla, firefox etc). Now the site
is XHTML 1.1 and valid so that is all good. But the problem I am seeing is that 
the background colour doesn't cover the
whole page.

Now this only happens when I output application/xhtml+xml. Go have a look in IE (which gets text/html), its fine.

in XHTML, the BODY element isn't "magic" anymore. It does not cover the entire browser viewport, but only stretches as far as its content (which is then compounded if you're floating or otherwise removing elements from the natural flow).


The solution: apply your background colours and/or images to the HTML element instead of the BODY element.

--
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