text-orientation

Controls character orientation in vertical writing mode. Used with writing-mode: vertical.

Class List

ClassCSSDescription
tomtext-orientation: mixedMixed (CJK upright, Latin rotated)
toutext-orientation: uprightAll characters upright
tosrtext-orientation: sideways-rightRotated to the right
tostext-orientation: sidewaysLaid on its side

Usage Examples

Must be used with writing-mode classes to take effect.

<!-- Vertical writing + mixed orientation -->
<div class="wmvr tom">
  Text with mixed Korean and English
</div>

<!-- Vertical writing + all characters upright -->
<div class="wmvr tou">
  ABCDE 12345
</div>

Tips

CJK vs Latin

tom (mixed) keeps CJK characters upright and rotates Latin characters. tou (upright) keeps all characters upright.