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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:00:57+00:00 2026-06-17T10:00:57+00:00

FIDDLE IS HERE (logs to console) The situation is when the page starts out

  • 0

FIDDLE IS HERE (logs to console)

The situation is when the page starts out with a <H1> that has a margin-top greater than the margin found on <body>.

This causes the <body> to be pushed lower in the page yet $('body').offset().top remains set to the <body>‘s margin-top. This of course causes my debug element (which highlights the position of elements) to be incorrect since the body’s dummy element is now in the wrong position.

Curiously the rest of the $(elem).offset() values are correct for any descendant of <body>.

Is there a fix for this short of manually checking the margin-top of the recursively first childs of body with a while loop?

Noticing the issue on Safari 6 though I suspect I’ll find it on Chrome as well.

  • 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-17T10:00:58+00:00Added an answer on June 17, 2026 at 10:00 am

    jQuery 1.9.0 has addressed this issue. Thanks so much, jQuery is awesome.

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

Sidebar

Related Questions

I have a fiddle here that has a big blue div. When i click
Fiddle here: http://jsfiddle.net/csaltyj/3A78u/ I want the sub-sub nav menu to align with the top
i have a jquery script. see fiddle here , that loads some scripts depending
I have a fiddle here: http://jsfiddle.net/justinboyd101/4nrbb/ Here is my question: Why are my console.log
I have a tricky CSS situation here. Basically I have nested span tags that
Fiddle here: http://jsfiddle.net/emJcx/1/ I have a drop down menu that is a simple show
Fiddle here I have an array of objects that I want to map directly
I have the following fiddle here: http://jsfiddle.net/9jN8L/ The idea is that sidebar will be
I've made a very simple fiddle here , and you can check it out
I've created a fiddle here: http://jsfiddle.net/surfjam/zWWpz/ I can't figure out why animate works in

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.