Menu Samaritan's Purse

WRITING-MODE

The writing-mode property specifies whether lines of text are laid out horizontally or vertically and the direction in which blocks progress.

SYNTAX

CSS

writing-mode: value;

JS

object.style.writingMode = "value";

VALUES

<'writing-mode'> = horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr
horizontal-tb

Top-to-bottom block flow direction. Both the writing mode and the typographic mode are horizontal.

vertical-rl

Right-to-left block flow direction. Both the writing mode and the typographic mode are vertical.

vertical-lr

Left-to-right block flow direction. Both the writing mode and the typographic mode are vertical.

sideways-rl

Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal.

sideways-lr

Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal.

INITIAL

horizontal-tb

EXAMPLES

HORIZONTAL-TB

VERTICAL-RL

VERTICAL-LR

SIDEWAYS-RL

SIDEWAYS-LR

JS

INTERNAL

direction

text-combine-upright

text-orientation

unicode-bidi

EXTERNAL

World Wide Web Consortium (W3C)