Tooltip
by DanielSTh
HTML
<div>
<div class="wrapper">
Poner el Cursor.
<div class="tooltip">Este es un Tooltip!</div>
</div>
</div>
CSS
body{background-color: #E8E8E8;}
.wrapper {
text-transform: uppercase;
cursor: pointer;
font-size: 20px;
margin: 100px 75px 10px 75px;
position: relative;
text-align: center;
width: 200px;
-webkit-transform: translateZ(0);
-webkit-font-smoothing: antialiased;
text-decoration: none;
background-color: #FCFCFC;
color: #87888e;
border-bottom: 3px solid #AEBCC5;
border-radius: 2px 2px 3px 3px;
padding: 10px 25px;
transition: all .3s linear;
display: inline-block;
font-family: Dosis;
font: bold 15px Dosis;
box-shadow: 0px 3px 10px #E4E4E4;
}
.wrapper .tooltip {
background: #77b700;
bottom: 100%;
color: #fff;
display: block;
left: -25px;
margin-bottom: 15px;
opacity: 0;
padding: 5px;
pointer-events: none;
position: absolute;
width: 100%;
-webkit-transform: translateY(10px);
-moz-transform: translateY(10px);
-ms-transform: translateY(10px);
-o-transform: translateY(10px);
transform: translateY(10px);
-webkit-transition: all .25s ease-out;
-moz-transition: all .25s ease-out;
-ms-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
-webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28),inset 1px 1px 1px #D0F582;
-moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28),inset 1px 1px 1px #D0F582;
-ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28),inset 1px 1px 1px #D0F582;
-o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28),inset 1px 1px 1px #D0F582;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28),inset 1px 1px 1px #D0F582;
}
/* This bridges the gap so you can mouse into the tooltip without it disappearing */
.wrapper .tooltip:before {
bottom: -20px;
content: " ";
display: block;
height: 20px;
left: 0;
position: absolute;
width: 100%;
}
/* CSS Triangles - see Trevor's post */
.wrapper .tooltip:after {
border-left: solid transparent 10px;
border-right: solid transparent 10px;
...