JSFiddle - React, Tailwind, and code Playground
HTML
<a class="tooltip" href="#">Tooltip<div class="twipsy right"><div class="twipsy-arrow"></div><div class="twipsy-inner">right!</div></div></a>
<br />
<a class="tooltip" href="#">blah<div class="twipsy right"><div class="twipsy-arrow"></div><div class="twipsy-inner">right again!</div></div></a>
<br />
<a class="tooltip" href="#">next<div class="twipsy right"><div class="twipsy-arrow"></div><div class="twipsy-inner">right again again again again again again again again again again again again again again again again again again again!</div></div></a>
CSS
a:hover { text-decoration:none;} /*BG color is a must for IE6*/
a.tooltip .twipsy {display:none;}
a.tooltip:hover .twipsy{
top: 0px;
left: 50px;
position: absolute;
visibility: visible;
padding: 5px;
font-size: 11px;
z-index: 1000;
filter: alpha(opacity=80);
-khtml-opacity: 0.8;
-moz-opacity: 0.8;
opacity: 0.8;
display:block;
}
.twipsy-inner {
padding: 3px 8px;
background-color: black;
color: white;
text-align: center;
max-width: 200px;
text-decoration: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.twipsy.right .twipsy-arrow {
top: 50%;
left: 0;
margin-top: -5px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-right: 5px solid black;
}
.twipsy-arrow {
position: absolute;
width: 0;
height: 0;
}