In my example below, you can see the sticky top is working perfectly well(scroll down) but the bottom is not.
Can someone explain why the bottom would not stick?
Thank you
#test {
display: flex;
}
#top {
position: sticky;
top: 0;
}
#bottom {
position: sticky;
bottom: 0;
}
<div id="test">
<div id="col1">
test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>
</div>
<div id="col2">
<div id="top">top</div>
<div id="bottom">bottom</div>
</div>
</div>