Re: display: none

On Sunday 2006-06-04 20:54 +0100, David Woolley wrote:
> > You wanted to see h4 elements, no? If so, I suggest: 
> > 
> >   body * { display: none } 
> 
> This will match all h4 elements, and has a higher specificity
> than:
> 
> >   h4 { display: block }

No, they have the same specificity (0,0,0,1):
http://www.w3.org/TR/CSS21/cascade.html#specificity

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Sunday, 4 June 2006 20:05:54 UTC