Home › Forums › CSS › On-Page Dictionary in CSS Only? › Re: On-Page Dictionary in CSS Only?
May 24, 2012 at 1:37 pm
#103422
Mottie
Member
Personally, I think a better idea would be to use a tooltip script. This simplifies your HTML markup and separates layout from function:
HTML
Hover on a term in a pink box for its definition.
Term One.
Another Term
Code for the head of your document
Here is a basic demo of the code above. You would need to download the tooltip script and save the files to your site as well.
If you prefer a different tooltip script, there are a ton to choose from… the script shown above to initialize the tooltip will be slightly different.