CSS outline Property Reference

The CSS outline property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

CSS outline Property Reference

The CSS outline property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

outline overview

The CSS outline property is a standard property in CSS Basic User Interface. 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

outline formal syntax
FieldValue
Formal syntax<'outline-width'> || <'outline-style'> || <'outline-color'>
Initial valueoutline-width, outline-style, outline-color
Applies toallElements
InheritedNo
Percentagesno
Computed valueoutline-width, outline-style, outline-color
Animation typeoutline-width, outline-style, outline-color
Mediavisual, interactive
Specification groupCSS Basic User Interface
StatusStandard

Practical examples

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

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

Description

The CSS outline property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

References

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

Similar or alternative tools

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