Tooltip

Horizontal tooltip

by Thomas Orthbandt

HTML

<div style="margin-top:50px;">
	<a title="" class="tooltipLeft" href="#">here
	     <span class="bubble">To import desktop data, do that first since it removes all previous data and bank connections before importing.  Then continue this interview if needed.</span>
	</a>
</div>

CSS

a.tooltipLeft:hover {
    text-decoration: none;
}
.tooltipLeft {
    position: 		relative;
}
.tooltipLeft span {
    margin-left: 	-999em;
    position: 		absolute;
}
.tooltipLeft:hover span {
    background: 	none repeat scroll 0 0 rgba(0, 0, 0, 1);
    border-radius: 	5px;
    left: 			60px;
    margin-left: 	0;
    padding: 		10px 30px;
    position: 		absolute;
    top: 			-35px;
    width: 			250px;
    z-index: 		99;
}
.tooltipLeft:hover span:before {
    border-color: 	rgba(0, 0, 0, 0) rgba(0, 0, 0, 1) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0); /* Create arrow pointing left */
    border-style: 	solid;
    border-width: 	15px;
    content: 		"";
    height: 		0;
    left: 			-30px;
    position: 		absolute;
    top: 			25px;
    width: 			0;
    z-index: 		99;
}
span.bubble {
    color: 			#FFFFFF;
    font-size: 		12px;
    font-weight: 	300;
    text-align: 	left;
    text-transform: none;
}