Re: display: none

 From <http://www.w3.org/TR/CSS21/visuren.html#propdef-display>:

"This value causes an element to generate no boxes in the formatting
structure (i.e., the element has no effect on layout). Descendant
elements do not generate any boxes either; this behavior cannot be
overridden by setting the 'display' property on the descendants."

The following would do the trick:

:not(h4) { display: none }

Sincerly,

ACJ


Jonathan Chetwynd wrote:
>
> how can I view only those elements marked h4?
>
> Jonathan Chetwynd
>
> they need to be compressed or collapsed rather than spread thinly 
> around using body * {visibility:hidden;} h4 * {visibility:visible;}
>
> I had hoped that body * {display:none;} h4 * {display:block;} might work.
>
>
>
>
>

Received on Sunday, 4 June 2006 16:28:44 UTC