Pure CSS Tooltips
What is a tooltip? This is a tooltip an aiding text that appears just when you roll on with the mouse. The basic idea comes from Eric Meyer's pure css popupsa very clever way to get dynamic effects on an html page without using javascript.
My idea was to add position:relative to the link, in order to allow the span element 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 the modifications done this technique will be buggy in Opera7.2 .
Now, let's have a look at the basic csscascade style sheets, the separation from content and presentation code for the tooltip:
No comments:
Post a Comment