Jump to content

tooltip problem


robert_gsfame

Recommended Posts

i have tooltip but it always follow the mouse, how can i set a fix position for the tooltip

Here is the code....thx

a.tooltip span{

 

position:absolute;

display:none;

left:51px;

top:-16px;

padding-left:2px;

padding-right:30px;

padding-top:10px;

padding-bottom:10px;

background : #fee9ee;

border : 2px solid #fd6c8b;

color : #086989;

font : 12px Verdana, Arial, Helvetica, sans-serif;

width:160px;

}

a.tooltip:hover {

direction:ltr;

position : relative;

}

a.tooltip:focus{outline:none;}

a.tooltip:hover span{display:block;

color:#000000;

}

a.tooltip:hover { font-size:100%; } /* IE6 fix */

Link to comment
https://forums.phpfreaks.com/topic/201697-tooltip-problem/
Share on other sites

Something will only follow the mouse if it has javascript working with it, CSS and HTML will not follow the mouse. So whatever your problem is, it isn't in the code you posted, and it also means you will need to post your javascript in the javascript section of the forum.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.