CSS opacity Property Reference

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

CSS opacity Property Reference

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

Updated 2026-08-12

opacity overview

The CSS opacity property is a standard property in CSS Color. 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

opacity formal syntax
FieldValue
Formal syntax<opacity-value>
Initial value1
Applies toallElements
InheritedNo
PercentagesmapToRange0To1
Computed valuespecifiedValueNumberClipped0To1
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Color
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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