PRB: Visibility of a Parent Element Does Not Affect Visibility of Its Child

ID: Q250347


The information in this article applies to:
  • Microsoft Internet Explorer (Programming) versions 4.0, 5


SYMPTOMS

Setting a parent element's visibility to "hidden" does not hide its child element.


CAUSE

A child element inherits its visibility from a parent only when the style is set to "inherit." When the style for the child is set to "hidden" or "visible," the child does not inherit the visibility of the parent.


RESOLUTION

A child element's visibility must be set back to inherit for it to take on the parent's attributes.


STATUS

This behavior is by design.


REFERENCES

For additional information, see the MSDN Online Web Workshop on visibility:

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/visibility.asp

Additional query words: DIV SPAN Style.visibility

Keywords : kbDHTML kbIE400 kbGrpInet kbIE500 kbDSupport
Version : WINDOWS:4.0,5
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 26, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.