files/en-us/web/css/reference/properties/text-orientation/index.md
The text-orientation CSS property sets the orientation of the text characters in a line. It only affects text in vertical mode (when {{cssxref("writing-mode")}} is not horizontal-tb). It is useful for controlling the display of languages that use vertical script, and also for making vertical table headers.
{{InteractiveExample("CSS Demo: text-orientation")}}
writing-mode: vertical-rl;
text-orientation: mixed;
writing-mode: vertical-rl;
text-orientation: upright;
<section class="default-example" id="default-example">
<div class="transition-all" id="example-element">
<p>
In another moment down went Alice after it, never once considering how in
the world she was to get out again.
</p>
</div>
</section>
/* Keyword values */
text-orientation: mixed;
text-orientation: upright;
text-orientation: sideways-right;
text-orientation: sideways;
text-orientation: use-glyph-orientation;
/* Global values */
text-orientation: inherit;
text-orientation: initial;
text-orientation: revert;
text-orientation: revert-layer;
text-orientation: unset;
The text-orientation property is specified as a single keyword from the list below.
mixed
upright
ltr.sideways
sideways-right
sideways that is kept for compatibility purposes.use-glyph-orientation
glyph-orientation-vertical and glyph-orientation-horizontal.{{CSSInfo}}
{{csssyntax}}
<p>Lorem ipsum dolet semper quisquam.</p>
p {
writing-mode: vertical-rl;
text-orientation: upright;
}
{{EmbedLiveSample('Examples')}}
{{Specifications}}
{{Compat}}