0

I know jQuery does most when it comes to cross-browser issues. I just wanted to know if offset() method of jQuery serves the purpose of cross-browser compatibility, I mean top, left, etc properties that can be derived from it?

Basically once I apply top, left, etc properties (which are derived from offset() function) to an element, I need to make sure that the element appears at the specified location across all browsers.

2 Answers 2

1

Unless otherwise noted in the documentation, all jQuery methods will work in every supported browser.

You can also search the bug tracker.

Sign up to request clarification or add additional context in comments.

Comments

1

Assuming what you're doing doesn't involve taking the element out of flow and the document re-flowing, it should behave the same in all browsers. If you cause a re-flow, you need to reposition in some edge cases.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.