{"id":326293,"date":"2020-11-27T07:53:18","date_gmt":"2020-11-27T15:53:18","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=326293"},"modified":"2020-12-01T09:18:41","modified_gmt":"2020-12-01T17:18:41","slug":"text-orientation","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/t\/text-orientation\/","title":{"rendered":"text-orientation"},"content":{"rendered":"\n

The text-orientation<\/code> property in CSS aligns text in a line when working with a vertical writing-mode<\/a><\/code>. Basically, it rotates either the line by 90\u00b0 clockwise to help control how vertical languages are displayed \u2014 much like the way text-combine-upright<\/a><\/code> rotates groups of characters within a line of text in a vertical script, but for full lines of text.<\/p>\n\n\n\n

.element {\n  text-orientation: mixed;\n  writing-mode: vertical-rl; \n}<\/code><\/pre>\n\n\n\n

For handling bi-directional text \u2014 a block that contains both left-to-right and right-to-left text, for example \u2014 check out the unicode-bidi<\/a><\/code> property. It\u2019s combined with the direction<\/a><\/code> property to override how the browser decides to display the text.<\/p>\n\n\n\n\n\n\n

Syntax<\/h3>\n\n\n
text-orientation: mixed | upright | sideways<\/code><\/pre>\n\n\n\n