I've got a menu which I want to stay in the same position on the page with css:
position:fixed;
top: 0;
But I want the menu to not go outside of a certain area when the page scrolls. Please see this example (scroll the result window).
Can this be done with just CSS, or can someone suggest an elegant JS solution to this?
Many thanks.