What Is A tooltip? This is a tooltipAn
Aiding text that appears just when you roll on with the mouse.
Basic idea comes from Eric Meyer'sPure CSS
PopupsA very clever way to get dynamic effects on an HTML page
Using JavaScript.
My idea was to addPosition: relativeTo
Link, in order to allowSpanElement inside to position absolutely
Respect the parent link. This code has been tested in ie5.5, opera7.11 and
Mozilla 1.4 and works fine. Solved ie bug adding some Z-index, but with
Modifications done this technique will be buggy in opera7.2.
Now, let's have
Look at the basic CSSCascade style sheets,
Separation from content and presentationCode for the tooltip:
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 }< br>