Archived topic
Sticky banner in element
3 replies · Started by Tan on August 23, 2021
Viewing posts 1–4 of 4
I have a banner on the sidebar for post, and I want it sticky when scrolled. How can I make that banner sticky in the grid column?
I used GP Premium Element to create that layout.
Hi there,
add this CSS:
.sticky-container > .gb-inside-container{
position: -webkit-sticky;
position: sticky;
top: 60px;
}
Then edit your Element, select the grid column container that has your sticky content and in Advanced > Additional CSS Class(es) add: sticky-container
Thank you so much, David! I did it :)
Glad to hear that!
This archived topic is closed to new replies.