This is a difficult problem, but it is possible. Here is my code:
HMTL:
<div id="a"></div>
CSS
#a { position: relative; background: #ffffff; position:absolute; top:50px; left:50px; } #a:after, #a:before { bottom: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } #a:after { border-color: rgba(255, 255, 255, 0); border-bottom-color: #ffffff; border-width: 30px; margin-left: -30px; } #a:before { border-color: rgba(0, 255, 0, 0); border-bottom-color: #00ff00; border-width: 36px; margin-left: -36px; }
Fiddle
Hope this works for you. Good luck
Progo source share