Use border to cut off a rectangle - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Use border to cut off a rectangle

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 {<!--from  w ww. ja v  a  2 s  . c o m-->
   width:100px;
   height:0;
   border-top:41px solid Chartreuse;
   border-left:41px solid yellow;
}
</style> 
 </head> 
 <body> 
  <div id="shape"> 
  </div>  
 </body>
</html>

Related Tutorials