Internet Explorer won't hide nested paragraphs

Giganews Newsgroups
Subject: Internet Explorer won't hide nested paragraphs
Posted by:  danep (danepowe…@gmail.com)
Date: 11 Mar 2007

Hi all,

On my site I have a section of code that resembles the following:

<p id="gear" style="display: none;">
<p>test</p>
</p>

This renders fine in Firefox (that is, nothing is displayed).
However, in Internet Explorer, "test" is still printed.  It appears
that the inner <p> does not inherit the "display: none;" property or
somesuch.  Is there a way to force IE to hide the nested paragraphs
without specifically specifying "display: none;" in every single one?

Replies