Take a peek at this example where I implement the affix for the right sidebar (unfortunately, Bootstrap 4 doesn't have true affixes) - Violy Theme Right Sidebar Example. The sticky behavior is achieved through this style:
.sidebar {
border-radius: 20px;
padding: 25px 25px;
position: sticky;
position: -webkit-sticky;
top: 0;
}
However, when I try to replicate the sticky behavior in CSS on my own page here, nothing seems to work as expected and the right sidebar scrolls with the text instead. What could be causing this issue?
It seems that just explaining the issue may not be enough to provide a solution, so I recommend inspecting the styles and elements using browser Developer Tools on both pages.