property

text-orientation — CSS reference

Controls glyph orientation in vertical writing. Initial mixed; inherited. Mixed uses script-specific orientation; upright keeps characters upright and forces used direction to ltr. Sideways lays text out as horizontal text rotated into the vertical line. No effect on horizontal writing.

Formal Syntax & Structure

css syntaxcss
mixed | upright | sideways

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS logical layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a,#b{writing-mode:vertical-rl} #a{text-orientation:upright} #b{text-orientation:sideways}</style><body><div id="a">ABC 日本</div><div id="b">ABC 日本</div></body></html>
CSS Reference