Name

direction — NN n/a IE n/a CSS 2

Synopsis

Inherited: Yes

Sets the direction of flow of inline portions of content (such as text) and the order in which table cells are filled along a row. Analogous to the DIR attribute of most elements, the direction style attribute lets you override the browser’s default rendering direction for other languages or special content.

CSS Syntax

direction: ltr | rtl | ltr-override | rtl-override

Value

Any of the four constants. The value ltr stands for left-to-right; rtl stands for right-to-left. The override values let you override the direction that is specified from the browser’s adherence to a standard Unicode bidirectional algorithm.

Initial Value

rtl

Applies To

All elements.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.