I am currently working on making my sidebar sticky on my website . I have implemented a script in the footer that changes the sidebar from a static position to fixed once the page reaches a certain point. The functionality is working correctly, but I am encountering an issue where the div containing the nav ribbons changes when the sidebar switches, causing them to no longer "hang" over the side. I have experimented with different combinations to try to maintain the scroll effect while keeping the ribbons looking consistent, but have not been successful. Any assistance on this matter would be greatly appreciated.
Thank you
As a reference, here is the sidebar layout I was trying to achieve: