How to rotate a div element?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to rotate a div element??

18th Sep 2017, 2:17 PM
Jitesh Gupta
3 Answers
+ 2
transform: rotate(45deg);
18th Sep 2017, 2:56 PM
Ferrum
Ferrum - avatar
+ 2
thanks, Ferrum and Andrew 😁
18th Sep 2017, 4:09 PM
Jitesh Gupta
+ 2
Means I will use like this, just check it-- <div style="transform:rotate(45deg);padding:50px;background-color:red;"></div>
18th Sep 2017, 4:11 PM
Jitesh Gupta