CSS direction Property Reference

The CSS direction property is a standard property in CSS Writing Modes. Review its formal syntax, computed behavior, and practical declarations.

CSS direction Property Reference

The CSS direction property is a standard property in CSS Writing Modes. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

direction overview

The CSS direction property is a standard property in CSS Writing Modes. 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

direction formal syntax
FieldValue
Formal syntaxltr | rtl
Initial valueltr
Applies toallElements
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typenotAnimatable
Mediavisual
Specification groupCSS Writing Modes
StatusStandard

Practical examples

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

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

Description

The CSS direction property is a standard property in CSS Writing Modes. Review its formal syntax, computed behavior, and practical declarations.

References

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

Similar or alternative tools

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