CSS display Property Reference

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

CSS display Property Reference

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

Updated 2026-08-12

display overview

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

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

display formal syntax
FieldValue
Formal syntax[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>
Initial valueinline
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecifiedExceptPositionedFloatingAndRootElementsKeywordMaybeDifferent
Animation typediscreteButVisibleForDurationWhenAnimatedNone
Mediaall
Specification groupCSS Display
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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