W3C home > Mailing lists > Public > www-style@w3.org > June 2006

Re: display: none

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 4 Jun 2006 13:05:42 -0700
To: www-style@w3.org
Message-ID: <20060604200542.GA5425@ridley.dbaron.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT