CSS3 Rotating the elements using the rotate() method Examples
CSS3 Rotating the elements using the rotate() method Examples
<!DOCTYPE html>
<html>
<head>
<title>CSS3 rotate() Method</title>
<style type="text/css">
img {
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-ms-transform: rotate(30deg);
transform: rotate(30deg);
}
.box{
margin: 50px;
width:120px;
height:110px;
background: url("css3.jpg") no-repeat;
}
</style>
</head>
<body>
<div class="box">
<img src="css3.jpg" alt="CSS3">
</div>
</body>
</html>
Output