nihalz
08-01-2007, 08:04 PM
hi
i have been looking for a pure css tooltip, and came across this one:
http://psacake.com/web/jl.asp
its exactly what i want, but i don't know how to position the tooltip properly...
i want it to appear on the bottom-left side of the link, like this:
[---------------blank-----------][LINK]
[------------TOOLTIP-------------]
can someone please tell me how to position the tooltip like above??
thanks a lot!
a.info{
position:relative; /*this is the key*/
z-index:24; background-color:#ccc;
color:#000;
text-decoration:none}
a.info:hover{z-index:25; background-color:#ff0}
a.info span{display: none}
a.info:hover span{ /*the span will display just on :hover state*/
display:block;
position:absolute;
top:2em; left:2em; width:15em;
border:1px solid #0cf;
background-color:#cff; color:#000;
text-align: center}
i have been looking for a pure css tooltip, and came across this one:
http://psacake.com/web/jl.asp
its exactly what i want, but i don't know how to position the tooltip properly...
i want it to appear on the bottom-left side of the link, like this:
[---------------blank-----------][LINK]
[------------TOOLTIP-------------]
can someone please tell me how to position the tooltip like above??
thanks a lot!
a.info{
position:relative; /*this is the key*/
z-index:24; background-color:#ccc;
color:#000;
text-decoration:none}
a.info:hover{z-index:25; background-color:#ff0}
a.info span{display: none}
a.info:hover span{ /*the span will display just on :hover state*/
display:block;
position:absolute;
top:2em; left:2em; width:15em;
border:1px solid #0cf;
background-color:#cff; color:#000;
text-align: center}