CSS - How can I make a custom tooltip when hovering on text?
Moderator: General Moderators
- Josh1billion
- Forum Contributor
- Posts: 316
- Joined: Tue Sep 11, 2007 3:25 pm
CSS - How can I make a custom tooltip when hovering on text?
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.
Depends what you mean by tooltip.
CSS alone? I don't think its possible.
Or you can use javascript to emulate a tooltip, which there are plenty of scripts that do so.
CSS alone? I don't think its possible.
Code: Select all
<a title="Tooltip">Text</a>- Josh1billion
- Forum Contributor
- Posts: 316
- Joined: Tue Sep 11, 2007 3:25 pm
I've used overlib for years for custom tooltips. If you're using JQuery, there's a Tooltip plugin you can use too.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.