CSS Writing Mode
- CSS Writing Mode is a CSS property that defines the direction of writing, block flow direction, and inline directionality.
- It is used to control the layout of web content and how it flows across different devices.
- This property can be useful when designing websites with text-heavy content in different languages and scripts.
Syntax
The syntax of the CSS Writing Mode property is as follows:
writing-mode: horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr;
Here, the values for the writing-mode property are:
horizontal-tb
: This is the default value, which sets the text to flow horizontally from left to right and top to bottom.vertical-rl
: This value sets the text to flow vertically from right to left.vertical-lr
: This value sets the text to flow vertically from left to right.sideways-rl
: This value sets the text to flow vertically from top to bottom and to the right.sideways-lr
: This value sets the text to flow vertically from top to bottom and to the left.