Create a div shape using border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Create a div shape using border

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">
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>

Related Tutorials