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?