HTML CSS examples for CSS Widget:Shape
Make this dogeared shape with css only
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .corner {<!--from www . j av a2 s .c o m--> float:left; width:0px; height:0px; border-style:solid; border-width:51px 51px 0 0; border-color:Chartreuse; } #a { background:yellow; width:201px; height:201px; float:left; } #b { float:left; width:51px; height:201px; background:blue; } #c { clear:both; float:left; background:pink; width:201px; height:51px; } body { background:OrangeRed; } </style> </head> <body> <div id="a"></div> <div id="b"></div> <div id="c"></div> <div class="corner"></div> </body> </html>