CSS visibility Property Reference

The CSS visibility property is a standard property in CSS Display. Review its formal syntax, computed behavior, and practical declarations.

CSS visibility Property Reference

The CSS visibility property is a standard property in CSS Display. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

visibility overview

The CSS visibility property is a standard property in CSS Display. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

visibility formal syntax
FieldValue
Formal syntaxvisible | hidden | collapse
Initial valuevisible
Applies toallElements
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Display
StatusStandard

Practical examples

These declarations demonstrate valid ways to set visibility. The initial and inherit global keywords remain available even when a property-specific value is preferable.

visibility live example
CSS .reset-example { visibility: initial; } .inherit-example { visibility: inherit; } @supports (visibility: initial) { .supported { visibility: initial; } }

Description

The CSS visibility property is a standard property in CSS Display. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: visibility
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies