Skew X axis - HTML CSS CSS Property

HTML CSS examples for CSS Property:transform

Description

Skew X axis

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         div {<!--from  w  w  w .  j  a  v a 2 s.  c o  m-->
            width: 300px;
            height: 100px;
            background-color: red;
            border: 1px solid black;
         }
         div#skewDiv {
            /* IE 9 */
            -ms-transform: skewX(20deg);

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

            /* Standard syntax */
            transform: skewX(20deg);
         }
      </style>
   </head>
   <body>
      <div>
      book 2s .com.
      </div>

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

Related Tutorials