Re: [WSG] Change to application/xhtml+xml breaks background colour.

2005-03-20 Thread Roger Johansson
On 20 mar 2005, at 02.10, Michael Dale wrote:
See the blue behind the header? That should be the background colour  
for the whole site.

Now this only happens when I output application/xhtml+xml. Go have a  
look in IE (which gets text/html), its fine.
Since you've started using application/xhtml+xml, you may be interested  
in something I wrote a while ago:

<  
http://www.456bereastreet.com/archive/200501/ 
the_perils_of_using_xhtml_properly/ >

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


Re: [WSG] Change to application/xhtml+xml breaks background colour.

2005-03-19 Thread Michael Dale
It's okay. I've fixed it. I was having an issue with overflow.

Thanks again, didn't know that detail about xhtml :)

- Original Message -
From: Michael Dale <[EMAIL PROTECTED]>
To: wsg@webstandardsgroup.org
Sent: Sun, 20 Mar 2005 12:35:09 +1100
Subject: Re: [WSG] Change to application/xhtml+xml breaks background colour.


> Thanks for that,
> 
> Is is possible to wrap everything in a DIV tag to do this? Because my current
> problem is that most of my other
> div tags have their own background colour and I cannot apply my body 
> background
> to them.
> 
> - Original Message -
> From: Patrick H. Lauke <[EMAIL PROTECTED]>
> To: wsg@webstandardsgroup.org
> Sent: Sun, 20 Mar 2005 12:23:07 +1100
> Subject: Re: [WSG] Change to application/xhtml+xml breaks background colour.
> 
> 
> > 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
> > **
> > 
> > 
> 
> **
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> **
> 
> 

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

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



Re: [WSG] Change to application/xhtml+xml breaks background colour.

2005-03-19 Thread Michael Dale
Thanks for that,

Is is possible to wrap everything in a DIV tag to do this? Because my current 
problem is that most of my other
div tags have their own background colour and I cannot apply my body background 
to them.

- Original Message -
From: Patrick H. Lauke <[EMAIL PROTECTED]>
To: wsg@webstandardsgroup.org
Sent: Sun, 20 Mar 2005 12:23:07 +1100
Subject: Re: [WSG] Change to application/xhtml+xml breaks background colour.


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

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

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



Re: [WSG] Change to application/xhtml+xml breaks background colour.

2005-03-19 Thread Patrick H. Lauke
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
**


[WSG] Change to application/xhtml+xml breaks background colour.

2005-03-19 Thread Michael Dale
Hey everyone,

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.

Here is a linky to my site: http://www.bluetrait.com/

See the blue behind the header? That should be the background colour for the 
whole site.

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

If you look at the source the background colour stops as soon as it hits the 
first DIV tag.


So any ideas?

Thanks heap,
Michael Dale.

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

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