Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS visibility definition

Syntax

visibility: visible | hidden | collapse

Description

Defines if an element should be visible or not.

Value Description
visible The element is visible.
hidden This value makes the element invisible, but doesn't remove the element from the layout.
collapse This value is only applicable to internal the table objects rows, columns, row groups and column groups. The space that the element should have used is collapsed and used by other rows/columns.

Example

[Try this example yourself]
<p style="visibility: visible">Visible text</p>
<p style="visibility: collapse">Collapsed text</p>
<p style="visibility: visible">Visible text</p>

Output

Visible text

Collapsed text

Visible text

  • Comments

No comments added.