I have an article page which uses a fluid layout based on Twitter Bootstrap.
The top nav bar becomes fixed when it is at the top of the browser window (so that it sticks) using this technique:
http://www.bennadel.com/blog/1810-Creating-A-Sometimes-Fixed-Position-Element-With-jQuery.htm
The sidebar also becomes fixed at the same time using the above technique and using the answer in this thread:
Fixed sidebar navigation in fluid twitter bootstrap 2.0
The scroll bar appears to the right of the sidebar as expected once the nav bar is at the top of the browser window, however I want to create a custom scrollbar similar to these examples:
http://readwrite.com/2012/11/07/how-technology-will-fare-in-president-obamas-second-term
I've tried using a technique like
http://manos.malihu.gr/jquery-custom-content-scroller/
but without success. Also because the top nav bar is fixed and his 50px
high, the fixed side bar's scroll bar extends beyond view at the bottom because of the "top:50px;"
attribute.
Here is the demo I have created:
http://jsfiddle.net/iagdotme/uvp8t/
How can I create the custom scrollbar effect as used in The Next Web or the other example and fix the height issue?
Thanks.