HTML Dog
Skip to navigation

CSS Property: visibility

The visibility, or invisibility, of a box.

Possible Values

ValueDescription
visibleDefault.
hiddenInvisible. Unlike display: none, visibility: hidden won’t pull the whole box out of the flow — its size and shape will still affect layout.
collapseVarious table row and column hiding shenanigans. Wildly unpredictable, with different browsers drunkenly breakdancing to different tunes. Avoid.
inherit
initial
unset

Example


p.flummox { visibility: hidden; }