HTML CSS examples for CSS Widget:Shape
Use border to cut off a rectangle
<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>