[jQuery] Re: simple use of dimensions plugin

2007-05-09 Thread Paul Malan
Brandon, thanks for the help! My problem was first that my div was relative to a containing div instead of the body. I knew this couldn't have been so difficult! Thanks a bunch. On May 9, 3:10 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > You will want to use the offset method to find th

[jQuery] Re: simple use of dimensions plugin

2007-05-09 Thread Brandon Aaron
You will want to use the offset method to find the top and left values of the image and then position the div absolute with those values. The offset is calculated from the top, left of the document ... so your div will need to be positioned relative to the body tag. Now for the code. var offset