I'm trying to create a sticky right sidebar titled "Recent Posts in Category" on this page. I want it to stay fixed when the user scrolls down.
Since Bootstrap 4 no longer supports the affix
feature, I attempted to accomplish this using CSS. I came across an example on codepen which worked well in my browser. Here is the code I added to my CSS file:
.make-me-sticky {
position: -webkit-sticky;
position: sticky;
top: 0;
}
I then applied the class to the HTML div like so:
<div class="col-md-12 col-lg-4 sidebar make-me-sticky">
However, I am not seeing any effect. What could be causing this issue?