- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Sun, 04 Jun 2006 16:24:26 -0700
- To: David Woolley <david@djwhome.demon.co.uk>, www-style@w3.org
----- Original Message ----- From: "David Woolley" <david@djwhome.demon.co.uk> To: <www-style@w3.org> Sent: Sunday, June 04, 2006 12:54 PM Subject: Re: display: none > >> 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 } > > So, this should only show first level text nodes. > I think that ability to select anonymous text elements in CSS is desirable in other places too. So by using something like this: body > * { display: none; } body > ~ { display: none; } /* ~ - anonymous text element */ body > h1 { display: block; } it would be possible to achieve the task. Andrew Fedoniouk. http://terrainformatica.com
Received on Sunday, 4 June 2006 23:26:27 UTC