Syntax | selector {direction: value;}
|
---|---|
Usage | The direction property is used to specify whether the text direction is ltr (left to right) or rtl (right to left). This property is specified by using a keyword according to the syntax shown above. |
Keywords |
|
Applies To | Applies to all elements. However, for the direction property to affect an inline element, the element's unicode-bidi property needs to be set to embed or override. |
Inherited | Yes |
Initial Value | ltr |
The direction properties are set using both ltr and rtl. |