Tool tip using CSS and HTML
One day I was working on my site and I needed to show a few details about a particular post of a forum. I tried out many ways but it was getting a bit crowdy, a bit untidy. I thought the best way to deal with this is to go to various free script sites like dynamic drive
and found some great scripts. But the only thing I was worried about was the length of the scripts .. they are really big. Hence I started to google around and collected some helpful ingredients that can help me. I started working on it and at the end of the day I made it. Here's the trick on how to build a tool tip with the help of HTML and CSS only i.e. a tooltip without using JS. Also note that I have used this JS code Click here to go to dynamicdrive.com
to make the link work properly inside the tool tips.window.location.href = this.href; return false;
| This is the CSS code: |
/* Tool tip css classes http://webtips.blogsome.com (Please keep this) */
|
| This is the HTML code: |
|
<p style="margin: 20%"> <a class="css_tooltip" href="#" > Take me to Google <span> <table style="background: transparent; font-size: 11px;" align="center" border="0" cellpadding="2" cellspacing="0"> <tr> <td colspan="2" align="center"> Click here to go to <a href="http://www.google.com" onclick="window.location.href=this.href;return false">Google</a> </td> </tr> </table> </span> </a> </p> |
See user feedbacks | Discuss










