The best CSS direction property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Setting text direction "right-to-left":
direction attribute specifies the text direction / writing direction.
Defaults: | ltr |
---|---|
inherit: | yes |
version: | CSS2 |
JavaScript syntax: | object .style.direction = "rtl" |
Figures in the table represent the first browser to support the version number of the property.
Immediately following the digital -webkit-, -ms- or -moz- ago in support of the prefix attribute first browser version number.
Attributes | |||||
---|---|---|---|---|---|
direction | 2.0 | 5.5 | 1.0 | 1.3 | 9.2 |
value | description |
---|---|
ltr | default. Text direction from left to right. |
rtl | Text direction from right to left. |
inherit | Provisions should inherit the direction attribute value from the parent element. |
CSS tutorial: CSS the Text