HTML CSS examples for CSS Widget:Shape
Create a div shape using border
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!-- w ww.j a va 2s . c o m--> background:black; } .triangle-up div { width:401px; height:151px; background:cyan; -webkit-transform:rotateY(41deg); margin:51px; } .triangle-up { -webkit-perspective:501px; } </style> </head> <body> <div class="triangle-up"> <div></div> </div> </body> </html>