Forum Moderators: not2easy
im assuming the tooltip is javascript. In the instance that the tooltip is called up on hovering the mouse over a certain piece of text (which is obviously an anchor tag) in the A href tag, just before the closing ">" you could try putting in style="float:left;position:absolute" (quotation marks included) assuming that your tooltip is spilling out right, if it is spilling left, then you could instead try style="float:right;position:absolute".
if that doesn't work can you post a small sample of your code thanks..
ArrTu.. float and position: absolute don't go together ;) they are contradictory in nature.. see Positioning the Float [w3.org] for more details..
Suzy
I didn't want to "hijack" sned's thread by getting more indepth about positioning here until s/he confirms more details .. but by way of an apology, (on re-reading my message I realise I may have been too short in my reply..)
I'm glad you've discovered CSS (warning: it's very addictive :)), but CSS-P (positioning) is a bit different, and understanding, what relative, absolute, static and float do and then how they interact with each other is a matter of trial and error sometimes. If it works for you then thats the main thing ;)
However you may find that rules that don't conform to the spec/recommendation will have varying degrees of success across different operating platforms/browsers. IE is generally very forgiving in nature to things it doesn't understand, whereas Moz (NN) is very strict.
You can use
with float and this would then enable it to remain a floating element and you to use z-index on it. position: relative;
However if sned's "highlighted words" are just <a> links embedded in a body of text, (the tooltip could be a CSS pop-up div ~ non-floating, or it could be the default tooltip that using the title attribute gives, or it could be javascript..) possibly
position:relative; could be added to the "tooltip's" div CSS code or setting the whole of the main content div to position:relative; and giving it a higher z-index than the right menu may be solutions.. Hope that helps clarify/make amends
Suzy
The popups are coded like this:
<a class="info" href="#">Link Word Here <span>Definition of Linked word goes here.</span></a>
The CSS:
a.info{
position:relative;
z-index:24;}
a.info:hover{z-index:25;}
a.info span{display: none}
a.info:hover span{
display:block;
position:absolute;
top:2em; left:2em; width:15em;
z-index:25;
}
The menu I'm trying to get this to show over is just
<div style="position:fixed; z-index:1">
Maybe <span> and <div> do z-index differently. Time to fool around some more.
Thanks for your input.
-sned
<a href="contact.html" title="Contact us!">Contact</a>
Hovering over that link for a second would pop up a little tooltip saying "Contact us!" I like this method because it seems to be cross-browser, doesn't require JavaScript, may count as relevant text for search engines, is easy to do, and provides a short delay before the tooltip shows. I personally find it very irritating to visit a page where everywhere I point flies something up in my face . . . ;)
I don't know if this addresses your needs or not, but I thought it was worth mentioning.
-sned
<edit>
I have to admit though, that I didn't think of the title for this purpose so I went and tried it. Turns out that the title doesn't give enough room for what I need, it truncates after a few characters into "text ..." . Oh well.
</edit>