CSS property: visibility
Considerations
Elements with a visibility property set to a value of hidden still take up space on the page. Use the display property to hide elements without taking up any space.
Values
Value |
Description |
|---|---|
collapse |
When used in table elements, this value specifies that a row or column should be removed a row or column. It does not affect the table layout. The space taken up by the row or column will be available for other content. When used on other elements, this value is equivalent to a value of hidden. |
hidden |
This value specifies that the element is invisible. Invisible elements still occupy space on the page. |
visible |
This value specifies that the element is visible. |
Parent topic: CSS Properties