You can create a CSS-only tooltips using the :after
and :hover
pseudo-class:
<a href="#" class="class-with-tooltip">Link</a>
.class-with-tooltip:hover:after{
content: 'Tooltip';
position: absolute;
padding: 5px;
border: 1px solid gray;
background: whitesmoke;
font-size: 14px;
}
I'm not sure how this going to work in old browsers, but it works in all major browsers.
The position: absolute;
is needed to prevent generated content from pushing the markup after the element.