Put Text on its Side in CSS (rotated)

Image for post
Image for post

While messing around with a hobby site I went to tilt text on its side and realized I didn’t really have a method for doing this.

After google’ing and playing a little I found this method that I like.

It only requires two CSS properties and plays nicely with surrounding elements.

The trick is using

Here’s a demo of it in action:

Optionally if you want actual vertical text with the letters remaining upright, you can drop the transform: scale(-1); property and add text-orientation: upright;.

Code on web assassins!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store