Positioning a tooltip relative to another div in JQuery
- by James P
Here's my tooltips markup and CSS:
<div class="tooltip">Click here to like it</div>
.tooltip {
position: absolute;
display: none;
background: url('images/tooltip.gif') no-repeat;
width: 100%;
height: 40px;
font-size: 0.8em;
line-height: 40px;
padding: 0px 0px 0px 8px;
}
Now, I have a div on my page…