- From: Håkon Wium Lie <howcome@opera.com>
- Date: Sun, 4 Jun 2006 22:21:24 +0200
- 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 UTC