Css Tooltips By alias.infnit Published: February 1, 2006
In this tutorial you will learn how to create tool tips using only CSS and HTML.
Step 1: The HTML
Set up your tooltip example. For this we will type the word which we want to tooltip to appear on when hovered. Then surround it with a span with the class tiptext.
Example
Now anywhere within the "tiptext" span place another span with the class tooltip, within that type the text which should appear on your tooltip.
You must position the span as absolute or else the span will fall to the next line and take up all the space available on the line. The top and left is how far from the top and left the span must be positioned.
Everything in .tiptext:hover is just styling on the tiptext when you hover over it.