Rotate -20 (minus) degrees - HTML CSS CSS Property

HTML CSS examples for CSS Property:transform

Description

Rotate -20 (minus) degrees

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         div {<!--from ww w  .ja  v  a 2s. c  om-->
            width: 300px;
            height: 100px;
            background-color:red;
            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