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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:59:44+00:00 2026-06-09T05:59:44+00:00

pretty much the title. backstory: I am designing a game engine in javascript based

  • 0

pretty much the title.

backstory: I am designing a game engine in javascript based on absolute positioning and I really need to know if the absolute positioning coordinate itself is in the center of the image(which would be awsome!), or else in one of the corners, but if so, which corner?

I think it’s the top left corner, but I’m not sure.

I really need to know so I can work out collisions between images, and actually give the objects in the game boundaries other than rectangles. I am tinkering around now, but it would save me a lot of time and I would feel more secure if someone could just let me know for sure.

I have an image in a div, and I am setting all css properties in the style property of the div, including bottom, left, height, and width

Thanks!

  • 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-09T05:59:47+00:00Added an answer on June 9, 2026 at 5:59 am

    You set the top and left… that’s how much space to give at the top and left of the element you’re positioning absolutely. Now if you don’t give it a width and height, you can use bottom and right to make it so it takes up all the space except for whatever you specify in those style attributes.

    A simple demo should be enough to illustrate this…

    I should mention that absolute means absolute to the origin of the body (top left corner of page). The exception to this is when the parent element of your absolutely positioned element is position: relative See this demo

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

Sidebar

Related Questions

Title pretty much explains it all really. I need to know how to automatically
Title pretty much describes it, I just need to get all the order numbers
The title pretty much explains it. I need some way to keep using body
The title pretty much says it all, how do I know if I'm getting
Title pretty much sums it up, I think. I'd like to know if it's
Title pretty much explains it all. I need to get some hardware information such
Pretty much what the title says really. We have some code that is .NET
Pretty much as the title says, if I put an image inside a details
Question in title pretty much sums it up. I have some resource object defined
Title pretty much sums it up. Is there a technical name given to a

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.