I'm looking to make my sidebar scrollable along with the rest of my page until it reaches the bottom of the content in the sidebar, at which point I want it to become fixed. A great example of this functionality can be seen on Facebook's right sidebar.
Is there a way to achieve this effect without needing to use JavaScript?
If using JavaScript is necessary, could someone explain how to do this in a simple way or perhaps direct me to a tutorial? I don't have much experience with JavaScript.
Thank you for your help!