Sunday, January 31st, 2010 
 Author: Jon B

CSS Tooltip That Works With IE6

A tooltipThis is a pure CSS tooltip window is a great way to present the user with a small popup when they hover over a link or an image. Some designers even use tooltip instead of a javascript popup window to ensure their message is read in case the user has javascript turned off in their browser.

I’ve used many different types of tooltips in the past and they all shared the same problem, they do not work with Internet Explorer 6. After many trial and error, I finally have a pure CSS tooltip that works in IE6.

HTML Code:

<a href="#" class="tooltip">Your Link Here
<span> Tooltip message you want to appear. </span></a>

Here’s the CSS code:

a.tooltip {
	color: #7C98AE;
	text-decoration: none
	}
 
a.tooltip:hover {
	position: relative;
	text-decoration: none
	}
 
a.tooltip span {
	display: none
	}
 
a.tooltip:hover span {
	display: block;
   	position: absolute; 
	top: 0px; left: 40px;
	width: 200px;
        padding: 5px; 
	margin: 10px; 
	z-index: 100;
        background: #f0f2f6; 
	border: 1px solid #955F1F;
	opacity: 0.9;
	text-align: center
	}

This CSS tooltip works with IE6, IE7, IE8, Firefox, Chrome, Flock and Opera. If you have your own CSS tooltip solution please share them here.

Tags » css, IE6, javascript, tooltip «

Trackback: Trackback-URL | Comments Feed: RSS 2.0
Category: CSS Tutorials

You can leave a response.

 

  1. 1
    Albares 

    Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for.

  2. hey, I am junior designer and your website is very inspirefull for both rookies and advanced designers. Thanks !

  3. thank you fou you.

  4. 4
    virren 

    very good css code for me

  5. thank you for CSSTip :)

Leave a Reply






Copyright © 2010 | Theme By JBWEBDEV | All Rights Reserved