description & Usage
To determine whether the text lines are horizontal or vertical, we use the writing-mode property.
Informations
| # | Description |
|---|---|
| Default Value | horizontal-tb |
| Inherited | yes |
| Animatable | no |
| Version | CSS3 |
| JavaScript syntax | object.style.writingMode="vertical-rl" |
Browser compatibility and Support
| # | Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|---|
| writing-mode |
Syntax
Values
| Values | Description |
|---|---|
| vertical-rl | Content vertically from top to bottom and horizontally from right to left. |
| vertical-lr | Content vertically from top to bottom and horizontally from left to right. |