I'm facing an issue where I have a div on the left-hand side of my page that needs to scroll along with the page. Using position:fixed works, but when I resize the browser window, the div ends up overlapping other elements on the page. This is clearly because of the fixed positioning.
Is there a way to make the div scroll with the page without using position:fixed? Maybe through JavaScript? Any tips or suggestions would be greatly appreciated.
#scrollerDiv{
position: fixed;
right:100px;
top:238px;
padding: 10px;
width:48px;
height:48px;
}