Text Orientation
These properties set the orientation of text.
CSS Properties
direction
Sets the direction of text (and other elements).
ltr
— texts and other elements flow left-to-rightrtl
— texts and other elements flow right-to-left
writing-mode
Sets how line-of-text flows.
horizontal-tb
— line flows horizontally; new lines are added top-to-bottomvertical-rl
— line flows vertically; new lines are added right-to-leftvertical-lr
— line flows vertically; new lines are added left-to-right
| LIVE PREVIEW
horizontal-tb (1)
horizontal-tb (2)
horizontal-tb (3)
horizontal-tb (2)
horizontal-tb (3)
vertical-rl (1)
vertical-rl (2)
vertical-rl (3)
vertical-rl (2)
vertical-rl (3)
vertical-lr (1)
vertical-lr (2)
vertical-lr (3)
vertical-lr (2)
vertical-lr (3)
text-orientation
Sets how characters are oriented within the line. (Only applicable for vertical writing.)
mixed
— vertical scripts flow naturally; horizontal scripts are rotated upright (default)upright
— everything is upright
| LIVE PREVIEW
(MIXED)
私の名前はMitsuha
私の名前はMitsuha
(UPRIGHT)
私の名前はMitsuha
私の名前はMitsuha
text-combine-upright
Groups the combination of characters into the space of a single character. (Only applicable for vertical writing.)
Specify none
or all
.
| LIVE PREVIEW
平成20年4月16日
References
- direction (MDN) — https://developer.mozilla.org/en-US/docs/Web/CSS/direction
- writing-mode (MDN) — https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode
- text-orientation (MDN) — https://developer.mozilla.org/en-US/docs/Web/CSS/text-orientation
- text-combine-upright (MDN) — https://developer.mozilla.org/en-US/docs/Web/CSS/text-combine-upright