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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:45:14+00:00 2026-06-11T20:45:14+00:00

I have an absolute positioned div that is shown on hover of an a

  • 0

I have an absolute positioned div that is shown on hover of an a. Since it is absolutely positioned at the base of the anchor (top:0; left:0), I wish to let the user to move from the anchor to the div without hiding the div.

Actually, I prepared a piece of JQuery code, but I’ve only be capable to let the div to be shown on hover. When I move from the anchor to the div, the latter is obsiously hidden.
Look at the JSFiddle to look what I did.

Thanks in advance.

  • 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-06-11T20:45:15+00:00Added an answer on June 11, 2026 at 8:45 pm

    First of all, you are over complicating everything by using javascript. You do not need it in this case, as you can just use a parent container to handle the hover action.

    I would personally do it like this: http://jsfiddle.net/qLUf9/

    <div class="hover_container">
        <a class="button">Click Me</a>
        <div class="container">
           This is my hover content.
        </div>
    </div>
    

    And the CSS:

    a.button {
     background-color: blue;
     color: #fff;
    }
    
    .hover_container {
     position: relative:  
    }
    
    .hover_container .container {
     display: none;
     border: 1px solid #000;
     float: left;
     position: absolute;
     left: 0;
     top: 20px;
    }
    
    .hover_container:hover .container {
     display: block;
    }
    

    Please note: IE6 does not support the :hover attribute on block elements. For IE6 and below, you must use some basic javascript to add a class such as hovered to that element. You can read more about fixing the IE6 hover bug here: http://robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
i have <div id=logo style=border: 3px coral solid;position:absolute;left:160px;top:35px;width:140px; height:100px; z-index:5> <img src=img.png ></img> </div>
I have the content of my website in an absolute positioned div that fills
I have a div that is position: absolute and it contains items that get
I have a site with absolute positioned elements on it, for example the top
I have a div that will fade in and out on hover in FF,
I have a problem using a small div that should hover over pics that
i have a container div which is position:relative and the squares are position:absolute because
I have a Div layer like this ... <style type=text/css> <!-- #newImg { position:absolute;
I have a <div> element with position: absolute and z-index something big. I would

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.