How to draw vertical text with CSS cross-browser?

Spread the love

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.

Leave a Reply

Your email address will not be published.