Answers for "how to rotate image on css"

CSS
2

how to rotate picture to the right in css

.img {
	transform: rotate(10deg);
  	/*to rotate an image you have to use the transform function in CSS and rotate
  	in degrees*/
}
Posted by: Guest on October-10-2020
10

image rotate css

div {
  width: 80px;
  height: 80px;
  background-color: skyblue;
}

.rotated {
  transform: rotate(45deg); /* Equal to rotateZ(45deg) */
  background-color: pink;
}
Posted by: Guest on April-29-2020

Browse Popular Code Answers by Language