how to make a sticky div not go past a fixed div code example
Example 1: fixed within the div css
#wrapper { width: 300px; background: orange; margin: 0 auto; position: relative; }
#feedback { position: fixed; right: 0; top: 120px; }
<div id="wrapper">
...
<a id="feedback" href="#">Feedback</a>
</div>
Example 2: make a div sticky
.fixedElement {
background-color: #c0c0c0;
position:fixed;
top:0;
width:100%;
z-index:100;
}