Works in Chrome, Safari, and Firefox:
- Right-click the
<div>
and choose 'Inspect Element'. - In the inspector choose the "Console" tab and type in
$0.offsetParent
. Press enter. - The result is the offset parent of your selected element.
Bonus: In Chrome and Safari, If you right-click the result in the console you can reveal it in the elements panel.