----- 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.comReceived on Sunday, 4 June 2006 23:26:27 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT