Click on the blue text below. Notice the difference between visibility and display.

VisibilityDisplay

Click here to see more data:

This is more information that follows the hidden data.

Click here to see more data:

This is more information that follows the hidden data.

There are two properties in CSS to hide and show data: the display and visibility attributes. 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, allowing creation of dynamic and interactive content such as outlines. Of course both are supported by Dynamic HTML in Internet Explorer 4.x and 5. The example below demonstrates the difference between dynamically changing the visibility and changing the display of CSS properties.