Page 1 of 1

CSS - How can I make a custom tooltip when hovering on text?

Posted: Sun Nov 11, 2007 1:16 am
by Josh1billion
I know it's possible to do with images (see tutorial, scroll down to see example on page), but is it possible to use this same technique on simple text? I barely know any CSS which is why I'm asking if that idea would be possible.

Posted: Sun Nov 11, 2007 10:03 am
by Zoxive
Depends what you mean by tooltip.

CSS alone? I don't think its possible.

Code: Select all

<a title="Tooltip">Text</a>
Or you can use javascript to emulate a tooltip, which there are plenty of scripts that do so.

Posted: Sun Nov 11, 2007 7:36 pm
by Josh1billion
Interesting, I see some examples of kinda what I was aiming for now with Javascript. But now I can't remember what I wanted this in the first place for, heh, I'll probably remember later.

Posted: Tue Nov 13, 2007 10:22 am
by pickle
I've used overlib for years for custom tooltips. If you're using JQuery, there's a Tooltip plugin you can use too.