visibility

The visibility property specifies whether the boxes generated by an element are rendered.

CSS2

visibility: visible | hidden | collapse | inherit
Initial: visible
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Note: Doctype is required for Internet Explorer 8+ on CSS2

Values

Δ

visibility: value;
 
Value: Description:
collapse Removed from display for rows, row groups, columns, or column groups and hidden from display for other elements
hidden Hidden from display but affects layout
inherit Takes the same computed value as the property for the element's parent
visible Visible for display

DOM

Δ

[window.]document.getElementById("element-id").style.visibility = "visibility";

Example | Values | collapse

Δ

Example | Values | hidden

Δ

Example | Values | visible

Δ

Example | DOM

Δ

References

Δ