Nick,

On Sep 11, 2006, at 1:32 AM, Nick Urbanik wrote:

> If you look at http://nicku.org/index.shtml you will see the body
> background-color is a light greeny colour #e5f5e9, but if you look at
> http://nicku.org/index.sxhtml in firefox 1.5.0, you will see that the
> background-color is missing.  (If you look at http://nicku.org/ you
> should get whatever your browser asks for).
>
> Can anyone help me to understand why the background-color is missing
> with application/xhtml+xml but is present with the exact same xhtml and
> css served as text/html?

In html the body element is 'magical' in that it fills the viewport 
(aka browser window) even when there isn't enough content to do so.  In 
xml that is not true.  In xml the html element as the root element gets 
this 'honor'.  Changing your body style to

html, body { ...

should fix things right up.

Keep in mind that in xml there is no forgiveness for errors.  The 
parser just stops and puts up an error message rather than trying to 
display the page anyway.

hth
-- 
Roger Roelofs

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to