Skip to content

Instantly share code, notes, and snippets.

@willianis4w
Last active December 29, 2015 17:58
Show Gist options
  • Save willianis4w/7707376 to your computer and use it in GitHub Desktop.
Save willianis4w/7707376 to your computer and use it in GitHub Desktop.
Tooltip with CSS3 Example: http://codepen.io/anon/pen/enIjq
.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;
}
<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