The direction property is used in CSS and certain HTML elements. This property sets the direction of the text, either going from left to right or from right to left. This should normally be done as part of the document (using the dir attribute in HTML) rather than directly using it through CSS.
Unlike the dir attribute in HTML, this property is not inherited from table columns into table cells, since CSS inheritance follows the document tree, and table cells are inside of the rows but not inside of the columns.
Values
ltr- The default value. Text and other elements go from left to right.rtl- Text and other elements go from right to left.
HTML example:
<div style="direction:rtl;">Right to left text.</div>
That produces:
Right to left text.
CSS h1 example:
h1 {
direction:rtl;
}