PDA

View Full Version : Cool DHTML Tooltip 1 problem with Opera



Joe Smith
09-24-2005, 06:17 PM
Cool DHTML Tooltip 1
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

Hi, I recently used your tooltip on my site www.moonboats.co.uk and it all works great in IE and FF and I thought great, job done, but I just saw it in Opera 7 and the tooltip is bouncing around at the top of the page miles from where it should be. I've tried the Tooltip on another site and Opera still doesn't like the way I've done it.
This is kinda perplexing me as the examples on your page work just fine.
The tooltip is just used on the two links Medusa and Moonbeam.

Any pointers greatly appreciated. (It's probably staring me in the face)
Cheers, Joe

jscheuer1
09-24-2005, 09:57 PM
In your stylesheet, moon.css, the last style block, the one for the tool tip isn't closed with a:

}

at the end. Because of this (and/or perhaps other reasons), Opera is ignoring the position:absolute; contained in that style block. If you properly close that block, it should fix it. If not, just add the style inline to the:

<div id="dhtmltooltip" style="position:absolute;"></div>dhtmltooltip division, like I just did.

Joe Smith
09-25-2005, 06:18 PM
I just looked it myself, found the problem and came back here to see you'd beaten me to it!
Sometimes staring at the screen you just can't see what's in front of you.