Sometimes, we want to set text direction to vertical with CSS.
In this article, we’ll look at how to set text direction to vertical with CSS.
How to set text direction to vertical with CSS?
To set text direction to vertical with CSS, we set the writing-mode
property.
For instance, we write
p {
writing-mode: tb-rl;
}
to make the text direction vertical on the p element with writing-mode: tb-rl;
.
Conclusion
To set text direction to vertical with CSS, we set the writing-mode
property.