Skip to main content

Visibility

Set whether an element is visible or hidden.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

v:c
visibility: collapse;
v:h
visibility: hidden;
v:v
visibility: visible;

Media Queries

Prefix a class with a breakpoint to apply it from that width up.

Pseudo Classes

Prefix a class with a state to apply it only while that state matches.