Rotate 20 degrees - HTML CSS CSS Property

HTML CSS examples for CSS Property:transform

Introduction

Box rotation with 20 degrees angle.

Demo Code

ResultView the demo in separate window

<html>
   <head>

      <style>
         div {<!-- w  w w. j  av  a  2s . c o  m-->
            width: 300px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#myDiv {
            /* IE 9 */
            -ms-transform: rotate(20deg);

            /* Safari */
            -webkit-transform: rotate(20deg);

            /* Standard syntax */
            transform: rotate(20deg);
         }
      </style>

   </head>
   <body>
      <div>
      book 2s .com.
      </div>

      <div id="myDiv">
      book 2s .com
      </div>
   </body>
</html>

Related Tutorials