CSS Visibility

CSS visibility allows you to control whether an element is visible or hidden without affecting the layout of the page.

Tutorials dojo strip

Visible

The visibility: visible; property is the default value, meaning the element is visible.

CSS
CSS

Hidden

The visibility: hidden; property hides the element, but it still takes up space in the layout.

CSS
CSS

Collapse

The visibility: collapse; property is used for table rows and columns. The element is hidden and the space it occupied is also removed.

CSS
CSS

CSS Visibility Example Code

HTML

CSS Labs

Tutorials dojo strip