No-Library (pure JS), HTML, CSS, JavaScript
Example more complex. position() gets the position with the first relative parent.
This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.
jQuery 1.8.3, HTML, CSS, JavaScript
Demo http://bugs.jquery.com/ticket/14335