direction

Draft

Definition

The direction CSS property is used to define the directionality of text content within an element. It specifies whether the text should be displayed from left to right (ltr for “left-to-right”) or from right to left (rtl for “right-to-left”). This property is particularly useful for handling bi-directional text, such as Arabic or Hebrew.

For example, direction: rtl; would set the text direction to right-to-left, accommodating languages that are read from right to left.