Menu Home

direction

osbo.com | CSS | Properties | direction

The direction CSS property specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box.

Syntax

CSS

direction: value;

JS

object.style.direction = "value";

Values

<'direction'> = ltr | rtl
ltr

Sets inline base direction (bidi directionality) to line-left-to-line-right.

rtl

Sets inline base direction (bidi directionality) to line-right-to-line-left.

Initial

ltr

Examples

ltr

rtl

JS

Internal

text-combine-upright

text-orientation

unicode-bidi

writing-mode

External

World Wide Web Consortium (W3C)