1. Home
  2. Css
  3. Rotate

You can use rotate() within transform style declaration. Pass a positive (clockwise) or negative (anti-clockwise) degree value to turn an element.

#css
<style>
    .rotate{
        transform: rotate(-10deg);
        display: inline-block;
    }
</style>

<div class="rotate">Rotated</div>
Output:
Rotated
copy
Full Css cheatsheet