robert_gsfame Posted May 14, 2010 Share Posted May 14, 2010 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 */ Quote Link to comment Share on other sites More sharing options...
haku Posted May 14, 2010 Share Posted May 14, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.