Custom Scrollbar CSS Generator
Style a scrollbar with both the standard properties and the WebKit pseudo-elements.
There are two ways to style a scrollbar and you need both for now. scrollbar-width and scrollbar-color are the standard properties, supported by Firefox and by Chrome from version 121; the ::-webkit-scrollbar pseudo-elements are the older approach that Safari and earlier Chrome still rely on. The standard version only offers auto, thin or none for the width, so exact pixel control remains WebKit-only. Hiding a scrollbar entirely does not stop the element scrolling, which is worth checking before you do it.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why are there two sets of properties?
Should I hide the scrollbar completely?
Can I get an exact scrollbar width in Firefox?
How to use the css scrollbar styler
- 1Set the width.
- 2Set the thumb radius.
- 3Pick the track.
- 4Pick the thumb.
- 5Pick the thumb on hover.
- 6The result appears immediately — copy or download it.
Embed this tool
Put the working css scrollbar styler on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Last updated
More css generators