Easy Tutorial
❮ Css3 Pr Transition Delay Css3 Pr Animation Fill Mode ❯

CSS direction Property

Example

Set text direction to "right-to-left":


Property Definition and Usage

The direction property specifies the text direction/writing direction.

Default value: ltr
Inherit: yes
--- ---
Version: CSS2
--- ---
JavaScript syntax: object.style.direction="rtl"
--- ---

Browser Support

Property
direction 2.0 5.5 1.0 1.3 9.2

Property Values

Value Description
ltr Default. Text direction from left to right.
rtl Text direction from right to left.
inherit Specifies that the value of the direction property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Text

❮ Css3 Pr Transition Delay Css3 Pr Animation Fill Mode ❯