Last active
December 29, 2015 17:58
-
-
Save willianis4w/7707376 to your computer and use it in GitHub Desktop.
Tooltip with CSS3 Example: http://codepen.io/anon/pen/enIjq
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
| .tooltip { | |
| font-weight: bold; | |
| position: relative; | |
| } | |
| .tooltip:hover:after { | |
| background: #fff; | |
| box-shadow: 0 0 5px #DFE3E6; | |
| border: 1px solid #DFE3E6; | |
| border-radius: 5px; | |
| bottom: 26px; | |
| color: #7f8b8d; | |
| content: attr(title); | |
| font-weight: normal; | |
| font-size: 13px; | |
| left: -90px; | |
| padding: 25px; | |
| position: absolute; | |
| z-index: 99; | |
| width: 200px; | |
| } |
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
| <span class="tooltip" title="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eum recusandae ullam numquam facere consectetur..."> | |
| Tooltip | |
| </span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment