visibility: hidden

The CSS declaration that makes an element invisible while keeping it in the layout, so it still takes up its space.

In more detail

The element stays in the render tree and its box is still laid out, but nothing is painted for it. Use it when you want to hide something without the page shifting around.

Related terms

Taught in

References