Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1059963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:15:09+00:00 2026-05-16T18:15:09+00:00

My goal is to use CSS ONLY for some tooltips. I like the solution

  • 0

My goal is to use CSS ONLY for some tooltips. I like the solution here: http://sixrevisions.com/css/css-only-tooltips/

The problem I’m having is when hovering over the first “qwer” (the second TD of the first TR), you can see the second “qwer” (second TD of the SECOND TR) over the tooltip. I’ve been playing with the z-index properties of the span & the A element, but can’t get it to work.

Works fine in Firefox. IE7/8 is where I’m seeing the problem.

Any ideas?

<html>
<head>
    <style type="text/css">
        /*  css only tooltips via http://sixrevisions.com/css/css-only-tooltips/  */
        a.tooltip { position: relative; color: red; }
        a.tooltip span { margin-left: -2000px; position: absolute; left: 10px; top: 10px; width: 200px; padding: 4px; background-color: #E2E7FF; border: 1px solid #003099; text-decoration: none; color: #000; z-index: 999; }
        a.tooltip:hover span { margin-left: 0px; }
    </style>
</head>
<body>
    <table>
        <tr>
            <td>asdf</td>
            <td><a class="tooltip" href="#">qwer<span>asdf asdf asfd asdf asfd asdf asdf asfd asdf</span></a></td>
            <td>zxcv</td>
        </tr>
        <tr>
            <td>asdf</td>
            <td><a class="tooltip" href="#">qwer<span>asdf asdf asfd asdf asfd asdf asdf asfd asdf</span></a></td>
            <td>zxcv</td>
        </tr>
    </table>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:15:09+00:00Added an answer on May 16, 2026 at 6:15 pm

    SOLVED

    Found the solution here: http://www.webmasterworld.com/forum83/8069.htm

    The key was only applying the "position: relative;" on a.tooltip:hover, not just a.tooltip . Working code:

    <html>
    <head>
        <style type="text/css">
            /*  css only tooltips via http://sixrevisions.com/css/css-only-tooltips/  */
            a.tooltip:hover { position: relative; left: 0px; top: 0px; z-index: 0; color: red; }
            a.tooltip span { 
                margin-left: -2000px;
                position: absolute;
                left: 5px;
                top: 10px;
                width: 200px;
                padding: 4px;
                background-color: #E2E7FF;
                border: 1px solid #003099;
                text-decoration: none;
                color: #000;
            }
            a.tooltip:hover span { margin-left: 0px; z-index: 999; }
        </style>
    </head>
    <body>
        <table>
            <tr>
                <td>asdf</td>
                <td><a href="#" class="tooltip">qwer<span>asdf asdf asfd asdf asfd asdf asdf asfd asdf</span></a></td>
                <td>zxcv</td>
            </tr>
            <tr>
                <td>asdf</td>
                <td><a href="#" class="tooltip">qwer<span>qwer qwer qwer qwer qwer qwer qwer qwer qwer</span></a></td>
                <td>zxcv</td>
            </tr>
        </table>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like I have to use way too many .children() in some of
It's been said that the goal of CSS is to provide visual presentation and
The goal: to randomly assign different color CSS backgrounds to a Wordpress-generated tag cloud
I would like to remove all CSS background images for a given element and
I've had it of those dozens of editors which never provides simple things like:
I'm going to list several quick facts for better understanding of my goal. Am
I have a project where I need to create a desktop app that acts
I'm trying to write a javascript that will toggle the class of a table
I'm working with the Google Groups on Knockout's forums for help with this too
In a Drupal 7 (and Drupal 6?) system, what kicks off the hook calling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.