how to rotate with css code example
Example 1: rotate css
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.tourne {
transform: rotate(45deg);
background-color: pink;
}
Example 2: image rotate with css
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.rotated {
transform: rotate(45deg);
background-color: pink;
}
Example 3: css rotate
<style>
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.rotated {
transform: rotate(45deg);
background-color: pink;
}
</style>
<div>Normal</div>
<div class="rotated">Rotated</div>