How to put an overflow in a script div to leave fixed lists in the header?

2
Hello, I'm trying to add a overflow:scroll to my project, but this invalidates the script that leaves div marker fixed on top until it reaches the next div .

link

If you take the overflow: scroll from css in .divContexto the code works correctly with the .marker div getting fixed at the top of the div context when scrolling the page. But as they will have several blocks in the page that I will create I need to make it work even with overflow:scroll .

Could someone help me solve the problem?

    
asked by anonymous 05.08.2014 / 21:42

1 answer

1

Could you put a more div encompassing the .divContext so that the parent has the scroll?

In jQuery you could do something like

$(".divContexto").wrap("rolagem");

And in the CSS the scrolling div would have the scroll.

    
12.08.2014 / 00:48