CSS overlay Property Reference

The CSS overlay property is a experimental property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

CSS overlay Property Reference

The CSS overlay property is a experimental property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

overlay overview

The CSS overlay property is a experimental property in CSS Positioned Layout. 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

overlay formal syntax
FieldValue
Formal syntaxnone | auto
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscreteButVisibleForDurationWhenAnimatedNone
Mediavisual
Specification groupCSS Positioned Layout
StatusExperimental

Practical examples

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

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

Description

The CSS overlay property is a experimental property in CSS Positioned Layout. Review its formal syntax, computed behavior, and practical declarations.

References

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

Similar or alternative tools

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