Could you send me an example of the source code? I'm in the process of
updating the offset method to work with the body tag and would like to
create a unit test out of it.

And actually dealing with the body tag and getting its offset can be a
pain. Especially if you use position instead of just margin. I would
suggest using a div to center your content.

--
Brandon Aaron

On 4/8/07, PragueExpat <[EMAIL PROTECTED]> wrote:


The body of my page is centered. It is 800px in width. I have a div that I
need to be absolutely positioned over the body, so I am trying to get the
left position of the (centered) body tag using the dimensions.js offset
method.

In IE I get the correct left position, but in FF I get 0.

When I ask for the left position of the first element in the body, IE says 0
while FF gives the correct number (even taking into account the centered
body).

$(window).width() does work in both browsers, so I could use that to figure
out where the centered body is, but I was just wondering if others have had
success finding the position of a centered body tag.

Thanks!
--
View this message in context: 
http://www.nabble.com/dimensions-offset%28%29-and-centered-BODY-tag-tf3544527s15494.html#a9894925
Sent from the JQuery mailing list archive at Nabble.com.


Reply via email to