text-orientation
Used in vertical writing modes to decide if individual characters should be rotated sideways or kept standing upright.
It is documented as part of the CSS Writing Modes specification.
Syntax
/* Usage Example */
.vertical-labels {
writing-mode: vertical-rl;
/* Forces characters to stay upright instead of rotating on their sides */
text-orientation: upright;
}
/* Syntax */
text-orientation: mixed;
text-orientation: upright;
text-orientation: sideways;
/* Global values */
text-orientation: inherit;
text-orientation: initial;
text-orientation: revert;
text-orientation: revert-layer;
text-orientation: unset;
text-orientation Browser support
Widely available
Since
2020 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
48+
41+
14+
79+