I discovered a way to adjust the positioning of a div using jQuery.
Check out this example.
Is it possible to achieve the same result using CSS?
UPDATE: I came across this solution. I also want the horizontal window scrollbar to appear if the fixed element extends beyond the window.