Hi,
I’m “rebuilding” a site (lotsia.se) and some pages will have a lot of content. Therefore I want a sticky “Tables of Content” on the right side on desktop,
I have seen several topics similar to this with some different solutions in regards to adding CSS on a container or blocks. I’ve tested the following solution on this page https://yidderi.se/test-kolumner:
.my-sticky-element {
position: sticky;
position: -webkit-sticky;
top: 50px; /* Offset from top of container */
}
I added the CSS on the block for Tables of Content and it works the way I like. Here I use standard columns.
But on https://lotsia.se/resekort/ I work with containers and grid. I have tried to add the same solutions but it doesn’t work. I have also tried a couple of other suggested solutions that I’ve found in the forum but they don’t work either.
Any suggestions?
Best regards