04May2011
Author
Dave
Category
CSS
Tags
, ,
Create Pure CSS Tooltips Thumbnail

Create Pure CSS Tooltips

Through this code, you can have your own tooltips using just CSS!!

Through this code, you can have your own tooltips using just CSS!!

First thre styling that goes inside your CSS file

a:hover {background:#ffffff; text-decoration:none;} /*BG color is a must for IE6*/
a.tooltip span {display:none; padding:2px 3px; margin-left:8px; width:130px;}
a.tooltip:hover span{display:inline; position:absolute; background:#ffffff; border:1px solid #cccccc; color:#6c6c6c;}

To use the tooltip simple give any link a class of tooltip and place ant text you want in a tooltip inside span tags

<a class="tooltip" href="#">Tooltiped link<span>This will appear in a tooltip</span></a>
Author
Dave

About the Author

has written 72 articles on Dave is my name.

My name is David Carr I'm a PHP web developer based in Hull it is my passion to design and develop clean, accessible and usable websites using PHP and other web technologies, I'm an avid Twitter user why not follow me? https://twitter.com/daveismynamecom

Visit this author's website   ·   View more posts by

Sharing is caring.
  • Subscribe to our feed
  • Share this post on Delicious
  • StumbleUpon this post
  • Share this post on Digg
  • Tweet about this post
  • Share this post on Mixx
  • Share this post on Technorati
  • Share this post on Facebook
  • Share this post on NewsVine
  • Share this post on Reddit
  • Share this post on Google
  • Share this post on LinkedIn

Discussion

No responses to "Create Pure CSS Tooltips"

There are no comments yet, add one below.

Leave a Comment