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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:11:17+00:00 2026-06-06T13:11:17+00:00

I have 2 divs A & B. div A has a position absolute to

  • 0

I have 2 divs A & B. div A has a position absolute to the relative wrapper parent of both divs.
div A is positioned above div B from getting the position of div B – offset 0 -50.

now the hover is working well in the first hover(div A left: 561px) but in the second hover it goes left: 1022px. and the third time it’s still 1022px.
even if on the hover off function I reset the left to 0.

$(".longlist").hover(function () {
    $(this).next("div.hoverwrapper").position({
        "my": "center top",
        "at": "center top",
        "offset": "0 -50",
        "of": $(this)
    });
    $(this).next("div.hoverwrapper").css('z-index', '100');
    $(this).next("div.hoverwrapper").animate({
        opacity: "show",
        top: "-75"
    }, "slow");
}, function () {
    $(this).next("div.hoverwrapper").css('z-index', '-1');
    $(this).next("div.hoverwrapper").animate({
        opacity: "hide",
        top: "-10"
    }, "fast");
    $(this).next("div.hoverwrapper").css({
        "top": "0",
        "left": "0"
    });
});

I don’t understand why is it happening…

  • 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-06T13:11:18+00:00Added an answer on June 6, 2026 at 1:11 pm
    $(".longlist").hover(function () {
        $(this).next("div.hoverwrapper").position({
            "my": "center top",
            "at": "center top",
            "offset": "0 -50px",
            "of": $(this)
        });
        $(this).next("div.hoverwrapper").css('z-index', '100');
        $(this).next("div.hoverwrapper").animate({
            opacity: 1,
            top: -75
        }, "slow");
    }, function () {
        $(this).next("div.hoverwrapper").css('z-index', '-1');
        $(this).next("div.hoverwrapper").animate({
            opacity: 0,
            top: -10
        }, "fast");
        $(this).next("div.hoverwrapper").css({
            "top": 0,
            "left": 0
        });
    });
    

    You don’t have to change the thing with opacity, but if you give positions as strings they must have “px” (except 0), so top: “-75” is no valid amount, it must be “-75px” or just numeric -75.

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

Sidebar

Related Questions

I have two relative positioned DIVs A & B. a has a DIV as
I have 2 parent divs (old & new), if I click the Click to
I have two divs floated next to one another: <div id=parent> <div id=child_1 style=float:left>
Say I have 2 divs: <div>&pound; 21.99</div> <div>&pound;</div> If I only want to select
lets say I have this divs: Js files needed: Jquery & Jquery UI <div
I have 2 divs (#divA & #divB). I want one to display #divA, then
I have three divs, within a content div. Container width 70%. Within that I
I have 2 divs that positioned horizontally ( float:left; width:50%; ). But i want
I have a table with tr and td . My td has a div
I have 2 divs <div id=number1><div id=number2></div></div> Why is #number1 { background:red; } #number2

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.