Skip navigation

DHTML : Visibility vs Display - 15 Nov 2001

Description: This sample demonstrates the difference between two CSS attributes that hide and show data: visibility and display. The visibility attribute allows content to be hidden, with the content still taking up space in the flow.

The display attribute allows the content to be removed from the flow, permitting the creation of dynamic and interactive content, such as outlines.

Brower/Platform Compatibility
Both attributes are supported in Dynamic HTML, which is supported in Microsoft Internet Explorer 4 and greater.

Complete Article

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish