Diagonal Wedge Shaped CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Diagonal Wedge Shaped CSS

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">
.shape {<!--   w w w.  j  av a2s  . c  o  m-->
   width:401px;
   margin:0 auto;
}

.top {
   height:0;
   border-width:0 0 151px 401px;
   border-style:solid;
   border-color:Chartreuse;
}

.bottom {
   height:51px;
   background-color:yellow;
}

* html .top {
   filter:chroma(color=blue);
   border-top-color:pink;
   border-left-color:OrangeRed;
}
</style> 
 </head> 
 <body> 
  <div class="shape"> 
   <div class="top"></div> 
   <div class="bottom"></div> 
  </div>  
 </body>
</html>

Related Tutorials