CSS direction Property
The direction property specifies the text/writing direction within any block element. It can take one of two values: rtl (right to left) or ltr (left to right).
Syntax
Property Values
| Value | Description |
|---|---|
| ltr | The text is read from left to right. This is the default setting. |
| rtl | The text is read from right to left. |
| initial | This property is set to its default value. |
| inherit | This property is inherited from its parent element. |
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera |
|---|---|---|---|---|---|
| direction | 2.0 | 1.0 | 1.3 | 5.5 | 9.2 |