HTML CSS examples for CSS Widget:Arrow
Create an arrow in css3
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!--from ww w . j av a 2 s . c o m--> color: white; display:inline-block; height: 100px;width:100px; } #a { text-align:right; background-image: -webkit-linear-gradient(45deg, transparent 50%, black 50%); } #b { background-image: -webkit-linear-gradient(135deg, transparent 50%, black 50%); } </style> </head> <body> <div id="a"> aaa </div> <div id="b"> bbb </div> </body> </html>