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

Re: display: none

From: Håkon Wium Lie <howcome@opera.com>
Date: Sun, 4 Jun 2006 22:21:24 +0200
Message-ID: <17539.16580.380041.105760@localhost.localdomain>
To: David Woolley <david@djwhome.demon.co.uk>
Cc: www-style@w3.org

Also sprach David Woolley:

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

Actually, it has the same specificity -- the * doesn't count [1]. However,
it's still not right as h4's children will be matched by "body *".
Using "body > *" is probably a better idea.

[1] http://www.w3.org/TR/2006/WD-CSS21-20060411/cascade.html#specificity

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Sunday, 4 June 2006 20:21:43 GMT

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