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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.