text-rotate 90 degree in css code example
Example 1: css text rotation
.rotate {
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
Example 2: html css tilt text
div.a {
width: 150px;
height: 80px;
background-color: yellow;
-ms-transform: rotate(20deg);
transform: rotate(20deg);
}
<h2>transform: rotate(20deg):</h2>
<div class="a">Hello World!</div>
<br>