How to create tooltip with css3
I am share with you how to Make CSS3 Based Tooltip, we are not a need to use any javascript for make tooltip on hover
Demo
Tooltip
The HTML Markup
Hover the Tooltip links below. <a href="#" title="This tutorials Working fine in All most latest browser" class="tooltip">Tooltip</a>
The CSS
<style> .tooltip { position: relative; } .tooltip:before, .tooltip:after { position: absolute; transition: All 0.5s ease; -webkit-transition: All 0.5s ease; -moz-transition: All 0.5s ease; -o-transition: All 0.5s ease; margin-left: -100px; left: 50%; bottom: 300%; display: block; color: #000; opacity: 0; visibility:hidden; } .tooltip:before { content: attr(title); border: solid 1px #0088cc; background: #FFF; width: 200px; text-align: center; z-index: 2; font-size: 13px; line-height: 18px; padding: 5px; } .tooltip:after { content: '\25c6'; margin-left: 0; margin-top: 10px; width: 15px; height: 15px; z-index: 1; line-height: 28px; color: #0088cc; font-size: 20px; } .tooltip:hover:before, .tooltip:hover:after { bottom: 150%; opacity: 1; visibility:visible; } </style>