I have a problem with the tooltip which is not displaying on top of everything. I tried to change z-index to a really high number but that didn't work.
CSS:
a.tooltipA { outline:none; } a.tooltipA strong { line-height:30px; } a.tooltipA:hover { text-decoration:none; } a.tooltipA span { z-index:10; display:none; padding:14px 20px; margin-top:-30px; margin-left:28px; width:300px; line-height:16px; } a.tooltipA:hover span { display:inline; position:absolute; color:#111; border:1px solid #DCA; background:#fffAF0; } .callout { z-index:20; position:absolute; top:30px; border:0; left:-12px; } /*CSS3 extras*/ a.tooltipA span { border-radius:4px; box-shadow: 5px 5px 8px #CCC; } HTML:
html += '<a href="#" class="tooltipA">' html += '<span>' + "Tooltip text" html += '</span></a>'; You can check out this code: First tooltip is not fully visible. JSFiddle
If possible I would like an answer using css/html but javascript is also an option. I can't use jquery. If you need more details, let me know. I also use bootstrap 3, but that doesn't matter I guess, since same thing happens on JSFiddle.