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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:39:56+00:00 2026-05-26T13:39:56+00:00

For the same markup, on two different pages, there’s a discrepancy where a hidden

  • 0

For the same markup, on two different pages, there’s a discrepancy where a hidden div will popup and show itself based on the position of the mouse cursor. Basically, div.blurb will popup way off in the corner on page 1, whereas on page 2 it shows up near the cursor where it’s supposed to. Page 2 is missing bolded elements below due to the different layout it has.

Markup hierarchy (bold indicate those that are present on page 1 but not page 2):

  • html
  • body
  • div#cn-body-inner-2col
  • div#cn-cols
  • div#cn-centre-col
  • div#cn-center-col-inner
  • table.plainTable
  • tbody
  • tr
  • td
  • div#contact_sheet
  • div.box
  • a
  • img

My markup:

<div id="contact_sheet">
    <div class="box">
        <a href=""><img /></a>
        <div class="blurb">
        </div>
    </div>
    <div class="box">
        <a href=""><img /></a>
        <div class="blurb">
        </div>
    </div>
    ... 
</div>

CSS for markup:

#contact_sheet{
    margin-top: 50px;
}

#contact_sheet .box {
  width: 150px;
  margin: 5px;
  padding: 5px;
  float: left;
  border: 1px solid #887767;
  text-align: center;
  background-color: #fff;
}

#contact_sheet .box a img{
    height: 100px;
}

#contact_sheet .box .blurb {
    position:absolute;
    display:none;
    z-index:9999;
    background-color: #fff;
    color:#000;
    border: 1px solid black;
    width: 300px;
    text-align: left;
}

jQuery:

$(document).ready(function(){
        $("#contact_sheet div.box").bind("mousemove", function(event) {
        $(this).find("div.blurb").css({
        top: (event.pageY) + "px",
        left: (event.pageX - 150) + "px"
        }).show();
    }).bind("mouseout", function() {
        $("div.blurb").hide();
    });
});

Is the following CSS (included within the layout) the problem to my popup hovering further away on page 1 than it should? I used Chrome to go through the hierarchy and grabbed all the styles related to positionning from the bolded items in the markup hierarchy mentionned above.

#cn-body-inner-2col #cn-centre-col {
    margin-right: -100%;
}

#cn-centre-col, #cn-centre-col-gap {
    float: left;
}

#cn-centre-col {
    width: 100%;
}

#cn-centre-col, #cn-head, #cn-foot, #cn-left-col, #cn-right-col {
    position: relative;
}

Bad:
https://i.stack.imgur.com/BAzwW.png

Good:
https://i.stack.imgur.com/YWCI9.png

What I’ve tried:

  • Adding position: static to my contact_sheet ID – didn’t work
  • 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-26T13:39:56+00:00Added an answer on May 26, 2026 at 1:39 pm

    I think your problem is the

    float:left; 
    

    And the

    position:relative;
    

    in your #cn-centre-col ID

    It make a huge difference for positioning a popup inside it

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

Sidebar

Related Questions

What is the difference between Semantic-markup and Semantic Web ? Are both same concepts?
Same question , different langauge. How do you do it in Java? Do you
The same as this question but for java Update Based on the comments and
Using the same sort command with the same input produces different results on different
I have two sibling divs sitting below each other, both contained in the same
Using CFML (ColdFusion Markup Langauge, aka ColdFusion), how can you compare if two single
I have the following markup. The errorPanel was first only used to show server
I'm trying to use jQuery to show and hide two overlay DIVs when I
There are a WPF User Control library and two (or more) User Controls in
I have two types of text that need to follow similar coloring rules based

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.