Name

direction

Values:

ltr | rtl | inherit

Initial value:

ltr

Applies to:

All elements.

Inherited:

Yes.

Computed value:

As specified.

Description:

This property specifies the base writing direction of blocks and the direction of embeddings and overrides for the unicode bidirectional algorithm. User agents that do not support bidirectional text are permitted to ignore this property.

Examples:

*:lang(en) {direction: ltr;}
*:lang(ar) {direction: rtl;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition 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.