[jQuery] Doubt in setting postions

[jQuery] Doubt in setting postions


Hi all,
Just had a doubt this morning...
http://docs.jquery.com/CSS
We have offset() and position() to get the left, top values of an
element relative to document and parent respectively.
Both are working same with FF3 and IE7.
But,
to set the positions i use
$("#element-id").css({'left': 'value', 'top': 'value'});
This sets position relative to document in FF3, but sets relative to
parent element in IE.
My doubt is...
Is there any different functions available to set values relative to
document and parent - like different functions we have to get values
(offset and position)...?
Or you experts use any other trick to rectify this?
Now i solve this by positioning the element immediate after the body
tag... then the body will be taken as the parent for that element and
works fine in both browsers...
Any other ideas?