JSFiddle - React, Tailwind, and code Playground
by mikeys4u
HTML
<p>
<br>
<br>Hover over me<a href="#" class="tip"><img src="http://www.codehaven.co.uk/wp-content/uploads/2013/07/137475175256290.gif" height="25"><span>Codehaven.co.uk</span></a>
CSS
a.tip {
position: relative;
text-decoration: none;
}
a.tip span {display: none;}
a.tip:hover span {
display: block;
position: absolute;
padding: .5em;
content: attr(title);
min-width: 120px;
text-align: center;
width: auto;
height: auto;
white-space: nowrap;
top: -32px;
background: rgba(0,0,0,.8);
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
color: #fff;
font-size: .86em;
left:-10px;
top: -46px;
}
a.tip:hover span:after {
position: absolute;
display: block;
content: "";
border-color: rgba(0,0,0,.8) transparent transparent transparent;
border-style: solid;
border-width: 10px;
height:0;
width:0;
position:absolute;
bottom: -16px;
left:1em;
}