Created
September 19, 2012 23:23
-
-
Save codearmorygists/3752998 to your computer and use it in GitHub Desktop.
Tooltip with CSS3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" data-tooltop="This is a tooltip!">a link</a> | |
<style type="text/css"> | |
a:hover:after { | |
content: attr(data-tooltip); | |
position: absolute; | |
top: 20px; | |
left: 0; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment