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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:35:25+00:00 2026-05-26T11:35:25+00:00

I have a problem I couldn’t understand, please help: I’ve developed html page with

  • 0

I have a problem I couldn’t understand, please help:

I’ve developed html page with images and made them draggable with jQuery UI help and I set these images position to relative and gave a left and top pixels, here is the link for the page http://ayyashsigns.com/lab/circles.html

I set:

  • b1 position: style=”left: 180px; top: -334px;…”
  • b2 position: style=”left: 233px; top: -546px;…”
  • b3 position: style=”left: 422px; top: -350px;…”
  • mainb position: style=”left: 93px; top: -330px;…”

The problem is: when I run

  • $(‘span#b1’).position().top I get 293
  • $(‘span#b1’).position().left I get 180
  • $(‘span#b2’).position().top I get 81
  • $(‘span#b2’).position().left I get 289
  • $(‘span#b3’).position().top I get 277
  • $(‘span#b3’).position().left I get 534
  • $(‘span#mainb’).position().top I get 297
  • $(‘span#mainb’).position().left I get 261

Why is all this difference, I need to access the images programmatically using jQuery. Can anybody explain this to me and how to fix it to give the exact location of the images.

Here is the link again: my page circles

Thanx in advance for any help,

Regards,

  • 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-26T11:35:25+00:00Added an answer on May 26, 2026 at 11:35 am

    Change <p id="monitor"> to <div id="monitor"> and remember to change </p> as well.

    Add this to your stylesheet:

    body {
        margin: 0;
    }
    
    #content {
        position:relative;
    }
    
    #b1 {
        top: ##px;
        left: ##px;
        position:absolute;
    }
    

    Use position:absolute for all your circle, find the correct top and left px for it. It should start from top left of your screen for top:0px; left: 0px;

    Now when you use $('span#b1').position().top it will give you the correct px.

    FYI, .position will return the px relative to parent, .offset will return the px relative to the document.

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

Sidebar

Related Questions

I have a problem and I couldn't solve it.please help me. I have two
I have experienced a weird problem with javascript. The problem page uses some jQuery
I have a problem and Google couldn't help me :-( I have the requirement
Where I am: Linux command line The problem I have now: Sometimes I couldn't
I suppose similar problem would have been discussed here, but I couldn't find it.
I have been trying to solve this problem for a while, but couldn't with
I have a problem with an Exception, couldn't find the answer on how to
Hi I have a problem with jQuery banner and dropdown menu. The dropdown menu
I have a small problem but couldn't find solution for that. I have founded
I have this problem. i think it is simple but i just couldn't get

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.