BetterTooltip plugin - CSS problem?
Hi,
I use the BetterTooltip - plugin to display some title-text when hovering an image.
Internet Explorer (7) is showing it just fine, but Firefox aligns the tooltip at the top of my page, while the image is somewhere 600-700px deep on the page.
The image is aligned in a table, behind some text and looks something like this:
- <img src="images/info.png" title="This is some text" class="abo-info" />
So when I hover it, a tooltip has to pop up saying "This is some text".
My script:
$(document).ready(function(){
$('.abo-info').betterTooltip({speed: 150, delay: 100});
});
With following CSS for the tooltip:
- .tip {
- width: 360px;
- padding: 5px;
- display: none;
- position: absolute;
- margin -top: 56px;
- margin-left: 50px;
- color: #FFF;
- font-weight: bold;
- font-size: 12px;
- background-image: url(images/tooltip-bgr.png);
- padding-left: 15px;
- background-repeat: no-repeat;
- float: left;
- bottom: 0px;
- }
The class abo-info doesn' t really have much css. This is what it looks like now:
- .abo-info {
- cursor: pointer;
- display: absolute;
- margin-left: 5px;
- }
I' ve already tried without the absolute, and with a display: block: doesn' t work.
Thanks for helping me out here!