Define skew transforms along with x axis using CSS

CSSWeb DevelopmentFront End Technology

You can try to run the following code to implement skew transforms along with x-axis using CSS −

Example

Live Demo

<html>
   <head>
      <style>
         div {
            width: 300px;
            height: 100px;
            background-color: pink;
            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>
         Tutorials point.com.
      </div>
      <div id = "skewDiv">
         Tutorials point.com
      </div>
   </body>
</html>

Output

raja
Published on 02-May-2018 16:22:11
Advertisements