We would like to know how to rotate arrows.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.arrow {<!-- w ww. j a v a 2 s.co m-->
width: 20px;
height: 20px;
border-top: 5px solid red;
border-right: 5px solid red;
}
.right {
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
}
.down {
-moz-transform: rotate(135deg);
-webkit-transform: rotate(135deg);
-o-transform: rotate(135deg);
-ms-transform: rotate(135deg);
}
.left {
-moz-transform: rotate(225deg);
-webkit-transform: rotate(225deg);
-o-transform: rotate(225deg);
-ms-transform: rotate(225deg);
}
.up {
-moz-transform: rotate(315deg);
-webkit-transform: rotate(315deg);
-o-transform: rotate(315deg);
-ms-transform: rotate(315deg);
}
</style>
</head>
<body>
<div class="arrow right"></div>
<br/>
<br/><br/>
<div class="arrow down"></div>
<br/>
<br/><br/>
<div class="arrow left"></div>
<br/>
<br/><br/>
<div class="arrow up"></div>
<br/>
<br/><br/>
</body>
</html>
The code above is rendered as follows: