CSS position: sticky for pinned elements

I’ve been trying to pin an element to my site such that it moves as the user scrolls but still remains within the boundaries of its outer box. Pinned elements should have the option to be sticky instead of absolute.

1 Like