HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

direction

Description

The direction property for CSS 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

1 · ltr

2 · rtl

3 · JS