With this snippet, you can style scrollbars across major browsers. You can make them thinner, add rounded corners, customize the track and thumb colors, and include a hover effect for a modern look.
Add this code with a snippets plugin in <head>, or place it in Page CSS block or Site Settings.
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #999 #f1f1f1; /* thumb | track */
}
/* Chrome, Edge, Safari, Opera (WebKit / Blink) */
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 8px;
border: 1px solid #ddd;
}
*::-webkit-scrollbar-thumb {
background: #999;
border-radius: 8px;
border: 2px solid #f1f1f1;
transition: background 0.25s ease;
}
*::-webkit-scrollbar-thumb:hover {
background: #777;
}
*::-webkit-scrollbar-corner {
background: transparent;
}
Some solutions only work on the live site. Always publish and test after each change, as results may not appear in the editor.