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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:42:10+00:00 2026-05-16T21:42:10+00:00

I have an absolutely positioned [element] such that in the CSS, I’ve explicitly set

  • 0

I have an absolutely positioned [element] such that in the CSS, I’ve explicitly set its left property to -9999px. I have not set the top property. I cannot set it, since I want the element to “stay” where it is in the DOM (even though it’s out of the document flow)

When I call [element].css(‘top’) in jQuery, FF returns a value. IE and Safari return ‘auto’. Is there a way to get the top value in IE/Safari? The CSS top value seems to be different than the top value coming from .offset().

  • 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-16T21:42:11+00:00Added an answer on May 16, 2026 at 9:42 pm

    auto is a valid setting for the top: setting, so no, that’s what it actually is. I’ll also throw in that Chrome shows auto as well. You’ll have to use .offset().top.

    It’s also worth noting that I’m getting 10 for both .css('top') and .offset().top in Firefox using http://jsfiddle.net/HVxtd/

    http://www.w3.org/TR/CSS2/visuren.html#position-props

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

Sidebar

Related Questions

I have a div that is absolutely positioned from the top left corner of
I have two absolutely positioned div elements that overlap. Both have set z-index values
I've setup my app/website such that I have an absolute-positioned canvas element on top
I have a canvas element positioned absolutely over a Flash object of the same
I have an absolutely positioned div that has a width of 100% with a
So I have this template design that is currently absolutely positioned, but I'm trying
If I have a parent div that is positioned absolutely and then a child
I have an absolutely positioned element at the bottom of a container element. The
I have an element on my page absolutely positioned. Im trying to write a
I'm noticing a strange behaviour in Firefox. I have a banner that's positioned absolutely

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.