The relativeTo needs to be an offsetParent of the element you are trying to get the offset of. Otherwise you need to get the offset of both the elements and do the math. BTW ... jQuery 1.2.x and the upcoming Dimensions 1.2 does not have a relativeTo option.
-- Brandon Aaron On Nov 17, 9:41 am, Codex <[EMAIL PROTECTED]> wrote: > Or am I trying to set it the wrong way? > > var getOffset = $(icon).offset({relativeTo: '#col-left' }); > > Also tried the variants: > > var getOffset = $(icon).offset({relativeTo: 'col-left' }); > var getOffset = $(icon).offset({relativeTo: ('col-left') }); > > but I keep getting the same result, and that is the offset relative to > the body. Am I missing something?