My HTML content consists of two columns, with the first column being a sidebar that should have limited content. The second column holds the main content and can span several pages.
The desired functionality is for the first column to scroll until the end of its content is visible when scrolling down, at which point it should remain fixed in place. The second column should continue to scroll normally. Both columns should move together, not independently.
I attempted using CSS properties like position:fixed and overflow-y:auto, but didn't get the expected results. You can see my attempt on this jsFiddle link: http://jsfiddle.net/a1qn17gw/1/
.fixed-content {
position: fixed;
overflow-y: auto;
}
To visualize, I want the page to behave as shown below while scrolling: