Re: Margin-color; text-indent; browser detection without script; attribute selector, ! combinator

> > --- "Braden N. McDaniel" <braden@endoframe.com>>
> wrote:
> [I paraphrase somewhat, because I accidentally
> deleted
> it instead of replying to it]
> > HTML is not the same as BODY, and the spec is
> clear
> and unambiguous on this fact.
> 
> 1. I still disagree, because:
> BODY {
> margin: 2em;
> background-color: red}
> will result in the whole canvas being coloured red -
> the margins won't be transparent. Therefore BODY ==
> HTML.
> 
> 2. If it is true, it is clearly not unambiguous
> enough.
> 
> > <div style="margin: 2em; background: red"></div>
> > <div style="margin: 2em; background: green"></div>
> > The spec does not state the colour of the margin
> here.
> 
> 1. <q>Margins are always
> transparent so the background of the parent box
> always
> shines through.</q>
> 
> Thus the colour of the margins of these DIVs are
> both
> the same (that of the parent), because they both
> share
> a parent.
> 
> 2. It is not possible for adjoining vertical margins
> to have different parents.
>  
> 
> 
> =====
>
----------------------------------------------------------
> From Matthew Brealey
> (http://members.tripod.co.uk/lawnet (for law)or
> http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for
> CSS))
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
> 


=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Received on Wednesday, 10 November 1999 08:53:26 UTC