HTML CSS examples for CSS Widget:Arrow
Aligning css arrow boxes
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .arrow {<!--from www . j a va 2 s . c o m--> float:left; width:129px; height:100px; background-color:Chartreuse; border:2px solid yellow; position:relative; } .arrow:after { content:''; position:absolute; top:0px; left:129px; width:0; height:0; border:51px solid blue; border-left:13px solid pink; } .arrow:before { content:''; position:absolute; top:0px; left:130px; width:0; height:0; border:51px solid WhiteSmoke; border-left:13px solid OrangeRed; } </style> </head> <body> <div class="arrow"></div> <div class="arrow"></div> </body> </html>