![]() |
hover or click ? icon for help
I want to create little ? icons that when you hover over them or click them, they show a little notification. Kind of like when you hover over a link with title, it'll show what the title is. Well in this case, I'd like it to show a few sentences giving people some information.
I tried searching for how to do it, but I guess I just don't know what to search for, because I couldn't find anything :( Could someone tell me how this is done? Thanks! |
That’s called “tooltip” and there is a default browser function for that – as you already noted –, the
title attribute. It can be used on any element. If you want custom tooltips you can do like this:Code:
<div class="info">Code:
.info {position: relative;} |
Hello njfail,
You can put a title on an image that works the same. If that doesn't give you enough control, there are several jQuery solutions for tooltips. |
| All times are GMT +1. The time now is 09:21 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.