Take a look at ths fiddle - http://jsfiddle.net/hyH48/688/
I added another pseudo-element. I gave it the same border color of the background-colora elements and placed it over the existing one.
Here's the HTML and CSS in case you don't see it:
HTML:
<div id="mybox"> This will be my tooltip </div>β
CSS
#mybox { position: relative; width: XXXpx; height: YYYpx; border: 1px solid #000; border-radius: 4px; background-color: #fff; } #mybox:after, #mybox:before { content: ""; border-style: solid; border-width: 10px; width: 0; height: 0; position: absolute; top: 100%; left: 20px } #mybox:before { border-color: #000 transparent transparent; } #mybox:after { margin-top: -2px; border-color: #fff transparent transparent; }
banzomaikaka
source share