css rotate inage code example
Example 1: image rotate with css
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.rotated {
transform: rotate(45deg); /* Equal to rotateZ(45deg) */
background-color: pink;
}
Example 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*/
}