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.

/* 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;
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC