I am attempting to make it so that if I scroll past a div
or the width of that div
the sidebar becomes fixed. As you can see here.
Just scroll down and you will see what I mean. I want the sidebar to scroll from its relative position and not jump down the 500px. I would also like a if statement to tell it to return which for some reason it didn't like when I tried. Another major problem is that I am using @media to detect widths and if it below a certain width I want it to stop being fixed.
I hope that was clear enough any help is very much appreciated