How to use css bootstrap list-group with affix to create a sticky menu in a column?
|Added at||2016-12-29 02:12|
I am trying to create a sticky menu using CSS Bootstrap affix and
I manage to get most of it to work except for when the user scrolls down.
When the user scrolls down, the menu seems to take the entire with of the page.
I tried to set it up via data attributes
using something like this
But the data attribute did not make the menu stick! it just kept it on the top.
So I tried to use JS to get the job done like this
I created jsFiddle to show you the current behavior.
How can I fix this