writing-mode
Widely availableSince 201797% of users
Defines whether lines of text are laid out horizontally or vertically, and the direction in which blocks progress. Use it for vertical Chinese, Japanese or Mongolian text and for vertical labels in layouts.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since March 2017, and it keeps getting newer values.
Newer parts of writing-mode
sideways-lrBaseline Mar 2025sideways-rlBaseline Mar 2025Vertically-oriented form controlsBaseline Apr 2024, Widely Oct 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
horizontal-tb- Inherited
- Yes
- Applies to
- all elements except table row/column groups, rows, and columns
- Animation type
- notAnimatable
Quick example
.vertical-text {
/* rotates the text blocks to flow vertically from top to bottom */
writing-mode: vertical-rl;
}Values
horizontal-tbvertical-rlvertical-lrsideways-rlsideways-lrwriting-mode browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
48+
41+
10.1+
12+Mobile
48+Android
41+Android
10.3+iOS