Create custom shape background - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Create custom shape background

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.testClass {<!-- ww  w.  ja  v  a 2s  . co  m-->
   width:151px;
   height:100px;
   -webkit-transform:skew(21deg);
   -moz-transform:skew(21deg);
   -o-transform:skew(21deg);
   background:red;
}
</style> 
 </head> 
 <body> 
  <div class="testClass"></div>  
 </body>
</html>

Related Tutorials