Properties
CSS
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";
