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.

Related posts:

  1. Fancy CSS Content Box Strictly for beginners only, if you are a CSS guru...
  2. Speed Up and Reduce Your CSS File Cascading Style Sheets otherwise known as CSS has become one...
  3. 7 CSS Layout Tips The most difficult thing in CSS to get right is...

9 Comments for "CSS Tooltip That Works With IE6"

  1. great tips to avois using javascript for this kind of bonus for the user

    Reply To This Comment

    sac originaux   —   February 18, 2011
  2. the problem with this idea is that IE7 will apply its z-indexing madness to it (http://verens.com/2005/07/15/ie-z-index-bug/), so if you have a tooltip that could potentially overlap another tooltip “trigger”, the tooltip trigger will show through. You typically won’t be able to solve this without using js.

    Reply To This Comment

    jess   —   November 10, 2010
  3. nice tricks
    thanks

    Reply To This Comment

    virago   —   September 23, 2010
  4. Nice tips . and so many users still having IE6

    Reply To This Comment

    Fenetres PVC 77   —   September 18, 2010
  5. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for.

    Reply To This Comment

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

    Reply To This Comment

    vector art   —   May 24, 2010
  7. thank you fou you.

    Reply To This Comment

    china cell phones   —   May 11, 2010
  8. very good css code for me

    Reply To This Comment

    virren   —   April 17, 2010
  9. thank you for CSSTip :)

    Reply To This Comment

    beside paul   —   April 2, 2010

Leave a Reply





Featured Template

Connect With Me

Check out my about.me profile!

Latest Testimonial

"As the project began, Jon led me through process, and the final product is better than I could have imagined!" [ ...read more... ]

Shawna — 1/25/12