Archived topic
Sticky top button above the post
1 reply · Started by David on November 15, 2021
Viewing posts 1–2 of 2
Hello,
is it possible to create a sticky button above the post-content with generatepress?
Here is one example:
https://markuscerenak.com/pareto-prinzip.html
Thank you,
David
Hi there,
you can use CSS position sticky.
Give any Block within your content a CSS class of sticky-element
Then add this CSS:
.sticky-element {
position: -webkit-sticky;
position: sticky;
top: 0;
}
Adjust the top value to set how far from the container top edge it will stick.
This archived topic is closed to new replies.