Languages
[Edit]
EN

CSS - text vertical orientation (text vertical direction)

6 points
Created by:
Sujay
512

In this short article, we would liek to show how to set vertical direction for text using CSS.

Quick solutions:

Bottom-top direction:

Top-bottom direction:

 

Practical examples

Edit

text-orientation: mixed and writing-mode: vertical-rl was intruduced around 2015-2020 and works in some older versions only when -webkit- prefix is used (except Microsoft Edge that introduced it in 2020).

Bottom-top direction

Edit

Top-bottom direction

Edit

 

Legacy example

Edit

In this section, you can find vertical text direction hack that lets to achieve similar effect using only transformations. This solution works in older web browsers. The main disadvantage is the need to set the size of the container elements.

Bottom-top direction

Edit

Top-bottom direction

Edit

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join