Monday, November 26, 2012

Visibility Property

 The visibility property decides whether an element should be visible or not. It has three values:

o   visible: The visible value will make element visible.
o   hidden: The hidden value will hide the element. But the hidden element will not affect flow of the document
o   collapse: The collapse value will work only for table, table columns, table rows, table cells. As like the hidden value the flow of the table will not be altered.

Syntax:
visibility: {visible|hidden | collapse}

Example :
Div {visibility: visible}
P{visibility: hidden}
tr.test{visibility:collapse}

No comments:

Post a Comment