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

The page having problems is... http://schnell.dreamhosters.com/index.php?page=gallery# I use Firebug to debug my jQuery and
my goal is to get lots of rows from a translation table. I use
Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do
My Goal I would like to have a main processing thread (non GUI), and
My goal here is to create a very simple template language. At the moment,
I'm trying to use YUI compressor in a maven goal, but I'm pretty new
Goal Java client for Yahoo's HotJobs Resumé Search REST API . Background I'm used
My goal is to maintain a web file server separately from my main ASP.NET
my goal is to write a stored proc that can collect all field values
The goal: To create a .NET dll i can reference from inside SQL Server

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.