HTML CSS examples for CSS Widget:Shape
Create custom shape background
<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>