Hi there,
I’ve used sticky positioning on many of my sites and usually I will simply disable it on mobile, however in this particular use case I need an element sticky on mobile too.
I use this code:
.sticky {
position:-webkit-sticky;
position:sticky;
top:100px;
z-index:99;
}
body {
overflow-x:visible
}
The overflow-x: visibile is what is causing the side scrolling issues on smaller devices.
I can’t for the life of me figure out how to get around this. Could you please give me a solution?
I don’t think sticky elements on mobile should be limited by theme capabilities…
Here is the page in question: https://matthewv14.sg-host.com/digital/
Cheers,
David