CSS writing-mode property

Description

writing-mode property represents both the alignment of text lines (the direction of placement of lines) and the progress of flow of writing (the placement of words within line).

Syntax

writing-mode : horizontal-tb | vertical-rl | vertical-lr

Property values

horizontal-tbDefault

It represents that the lines are aligned horizontally and the progress of flow of lines is from top to bottom.

writing-mode: horizontal-tb;

vertical-rl

The lines are aligned vertically and the progress of flow of lines is from right to left.

writing-mode: vertical-rl;

vertical-lr

The lines are aligned vertically and the progress of flow of lines is from left to right.

writing-mode: vertical-lr;

Applicable to

It applies to all elements except table column, table column groups, table rows and table row groups..

#CSS digger
Was this article helpful?

 
arrow
It is representing the direction of text.
×

Ctrl+D