Site logo

Archived topic

Sticky top button above the post

1 reply · Started by David on November 15, 2021

Viewing posts 1–2 of 2

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.