CSS Scrollbar Generator

Style a scrollbar in Chrome, Edge, Safari and Firefox.


::-webkit-scrollbar styles Chrome, Edge and Safari. scrollbar-color and scrollbar-width style Firefox. Both are in the copied CSS.

Frequently asked questions

Can I style the page scrollbar?

Yes. Replace .scroller with html in the copied rules.

Why is the preview box short?

It scrolls on purpose so you can see the thumb. The rule does not set the height of your own element.