If you want to rotate an element by 90 Degrees (or indeed a different degree of your choosing) then apply the following class to the element/div:-

Ad You might find this useful
Loom
Record your screen to communicate better

Loom is the fastest way to record quick videos of your screen. It's easy to use and perfect for hybrid workplaces. FREE & affordable paid plans.

LoomLoom
Record your screen to communicate better
Promo Save on Loom
.rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}

Here we should be covering CSS Rotation in all browsers.

Ad You might find this useful
Rize
Maximize Your Productivity with Rize AI

Rize is an AI productivity coach that uses time tracking to improve your focus and build better work habits. It is available for macOS and Windows.

With the Slick Media Promo (click promo link bottom right), you can get a 25% discount on your first three months of Rize.

RizeRize
Maximize Your Productivity with Rize AI
Promo Save on Rize

How to Rotate more or less than 90 Degrees in CSS

Really easy, just replace the '90deg' 's above to a degree rotation of your choosing

Ad You might find this useful
Wavebox
Wavebox is the revolutionary browser you should be using Now!

Be more productive with apps, tidy tabs, multi-account sign-in, unified search, flexible workspaces, and more...

Get 35% OFF with the Slick Media Wavebox Promo Code (click promo link bottom-right)

WaveboxWavebox
Wavebox is the revolutionary browser you should be using Now!
Promo Save on Wavebox