1

I want to rotate an icon with class property in css

.km-cursoricon:after {
content:"\e0d4";
display:inline;
 -webkit-transform: rotate(90deg);
    transform: rotate(90deg); }

Here i am using content for icon and it is not rotating after using rotate transform also and "km-cursoricon " is the class for that icon, any one can suggest me how to rotate that icon.

1 Answers1

1

Inline elements cannot be transformed,and pseudo elements are inline by default so apply display:block ordisplay:inline-block to transform them

Pritish Vaidya
  • 21,561
  • 3
  • 58
  • 76