Sometimes, we want to draw vertical text with CSS cross-browser?.
In this article, we’ll look at how to draw vertical text with CSS cross-browser.
How to draw vertical text with CSS cross-browser?
To draw vertical text with CSS cross-browser, we use rotate
.
For instance, we write
.rotate-text {
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-o-transform: rotate(270deg);
transform: rotate(270deg);
}
to set the transform
property to rotate(270deg)
to rotate the elements with class rotate-text
by 270 degrees.
Conclusion
To draw vertical text with CSS cross-browser, we use rotate
.