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 6596359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:03:57+00:00 2026-05-25T18:03:57+00:00

I have a tooltip written purely in CSS. I’ve got it working in FF

  • 0

I have a tooltip written purely in CSS.

I’ve got it working in FF but for some reason it falls short in chrome and my list doesnt appear in my span.

I’ve made a jsFiddle if anybody can see where im going wrong?

http://jsfiddle.net/WW6MY/1/

  • 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-25T18:03:58+00:00Added an answer on May 25, 2026 at 6:03 pm

    Fiddle: http://jsfiddle.net/WW6MY/3/

    Add a new element (.tooltip-container). Set the position:relative CSS attribute, so that absolutely positioned child elements are positioned correctly. Move your span element inside the anchor to this container, so that the anchors don’t interfere with each other.

    Finally, attribute the :hover pseudo-selector to this container element, so that the tooltip is display correctly.

    HTML:

    <span class="tooltip-container">
        <a href="mypage.aspx" class="twotip">Tommy Two Dogs</a>
        <span>
            <ul>
                <li>Name: My Name</li>
                <li>Contact DDI: 0123 444 5678</li>
                <li>Mobile:01234 567 890</li>
                <li>Email: <a href="mailto:me@home.com">me@home.com</a></li>
                <li><a href="mypage.aspx">Click here for more details</a></li>
            </ul>
        </span>
    </span>
    

    CSS:

    .tooltip-container {
        position:relative;
    }
    .twotip + span {
        font-weight: normal;
        display: none;
        position: absolute;
    }
    
    .twotip {
        font-weight: bold;
        position: relative;
    }
    
    .tooltip-container:hover > span {
        background: red;
        font-size: 11px;
        height: 163px;
        color:#fff;
        left: -100px;
        display: inline;
        padding: 40px 30px 10px;
        top: 0px;
        width: 310px;
        z-index: 99;
    }
    
    .twotip ul li {
        color: #FFFFFF;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a function that positions a tooltip just above a textbox. The
I have tooltip(prototip, but it doesnt matter) on my page in javascript and I
At www.euroworker.no/order I have been trying to add a tooltip function but it seems
I have a tooltip that has a link to an anchor but it seems
i want show tooltip with image tag and i have written code like below
In my html page I have tooltip. Some strings are not fitting correctly because
I have a tooltip background-image that looks like this: My css is like this:
I have a tooltip containing some custom XAML. This tooltip is applied to many
I have written a tool tip snippet, its throwing error like TOO MUCH RECURSION
I am trying to have a tooltip on multiple lines. how do i do

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.