visibility

This CSS property shows or hides an element without changing the layout of the page.

Example

Initial value visible
Applies to all elements in the page

Syntax

  
visibility: hidden;
  

Values

The element box is visible.
The element box is invisible, but still affects layout as normal.
For table rows and columns, it will remove the space that they hold as if display: none is applied.

Browser support

visibility1121441
collapse11211041.3

We use cookies to improve your experience. Learn more in our Privacy policy.

×