Removing horizontal scrollbars while keeping the scrolling functionality

Hi there. I have a website with a fair bit of elements that scroll horizontally on mobile. How can I remove (or at the very least change the width of the scrollbar)? It it possible to style it for individual elements? This is the website: https://utveckling.samuraj.oderland.agency/ I tried targeting one of the horizontally scrolling elements and all children with this but it doesn't seem to work.. .puffblock ::-webkit-scrollbar { width: 0px !important; height: 0px !important; } .puffblock * { scrollbar-width: 0px; } .puffblock *::-webkit-scrollbar, .puffblock *::-webkit-scrollbar-thumb { width: 0px; display: none; opacity: 0; }
2 Replies
Mannix
Mannix•2y ago
yes it possible to style it for individual elements .puffblock::-webkit-scrollbar {height: 2px;} but on firefox you are gonna be limited to hiding it or making it thin with .puffblock { scrollbar-width: thin; }
M.
M.•2y ago
Awesome!! Thank you @mannix_ 😄