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

  • Home
  • SEARCH
  • 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 6957585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:01:22+00:00 2026-05-27T15:01:22+00:00

I have a simple tooltip that has the following CSS /* tooltip for buttons

  • 0

I have a simple tooltip that has the following CSS

/* tooltip for buttons */
a.tooltip{position:relative; z-index:24;text-decoration:none}
a.tooltip:hover{z-index:25;}
a.tooltip span{display: none}
a.tooltip:hover span{ /*the span will display just on :hover state*/
    display:block;
    position:absolute;
    top:1.1em; left:1.1em; width:10em;
    border:1px solid #6e7044;
    background-color:#feffe1; color:#6e7044;
    text-align: center}

This works properly for me in the normal case.

But if I have a div which has a pre-defined height and overflow-y:auto;, i have 2 problems

  1. the tooltip gets cut off. ( goes under the divs scrollbar)
  2. there happens an unwanted overflow-x to accomadate the span that has tool tip.

Example fiddle: http://jsfiddle.net/naveen/2ur3Q/

How could I correct this?

  • 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-27T15:01:25+00:00Added an answer on May 27, 2026 at 3:01 pm

    To keep your existing solution with minimal changes you might want to try this JavaScript solution – http://jsfiddle.net/8yeDy/

    Just delete all the span-s from the markup, attach some JS

    $('a').mouseover(function() {
         $(this).parent().append('<span>Eliminate(Delete)</span>');
     }).mouseleave(function() {
         $(this).siblings('span').remove();
     })
    

    and a few changes to CSS (the span is not in <a> anymore – just on its own)

    span{ /*the span will display just on :hover state*/
        display:block;
        position:absolute;
            left:10.8em; width:10em;
        border:1px solid #6e7044;
        background-color:#feffe1; color:#6e7044;
        text-align: center;
        margin-top:-1.8em;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox that has the following simple XAML (not necessary to read
I have a tooltip that has a link to an anchor but it seems
I have a simple CSS help popup that's been working well for me in
How do you a simple tooltip that displays a image and text when you
I have a bunch of elements that trigger a tooltip on hover. The problem
What I am trying to do is to have a very simple tooltip that
I have a simple html multiline tooltip implementation: this.tooltip = function(tag) { xOffset =
I have simple win service, that executes few tasks periodically. How should I pass
I have a window that displays text. There are two parts to the text:
I have a simple image gallery that I've paginated, and I want to to

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.