Writing-mode CSS Property

 

Specify whether lines of text are laid out horizontally or vertically:

p.test2 {
  writing-mode: vertical-rl;
}

Definition and Usage

The writing-mode property specifies whether lines of text are laid out horizontally or vertically.

Property Values

ValueDescription
horizontal-tbLet the content flow horizontally from left to right, vertically from top to bottom
vertical-rlLet the content flow vertically from top to bottom, horizontally from right to left
vertical-lrLet the content flow vertically from top to bottom, horizontally from left to right