CSS Scrollbar Generator
Customize scrollbar styles with CSS.Runs in this tab.⌘ ↵ runs it
Scrollable content line 1
Scrollable content line 2
Scrollable content line 3
Scrollable content line 4
Scrollable content line 5
Scrollable content line 6
Scrollable content line 7
Scrollable content line 8
Scrollable content line 9
Scrollable content line 10
Scrollable content line 11
Scrollable content line 12
Scrollable content line 13
Scrollable content line 14
Scrollable content line 15
Scrollable content line 16
Scrollable content line 17
Scrollable content line 18
Scrollable content line 19
Scrollable content line 20
/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #1a1a2e;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: #06b6d4;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #0891b2;
}
/* Firefox */
* {
scrollbar-width: auto;
scrollbar-color: #06b6d4 #1a1a2e;
}Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout CSS Scrollbar Generator
Free online CSS scrollbar style generator. Customize scrollbar track, thumb, and hover colors with live preview for WebKit browsers. It runs in your browser. Nothing is sent to a server.
Questions
Do custom scrollbars work in all browsers?
Custom scrollbar styles using ::-webkit-scrollbar work in Chrome, Edge, Safari, and Opera. Firefox supports scrollbar-color and scrollbar-width properties.
What parts of the scrollbar can I customize?
You can customize the scrollbar track (background), thumb (the draggable part), thumb hover state, width, and border-radius.
Does the CSS scrollbar generator output Firefox-compatible code?
The generator focuses on WebKit-based syntax, which covers Chrome, Edge, and Safari. For Firefox, you can use the scrollbar-color and scrollbar-width properties shown alongside the WebKit output.
Can I hide the scrollbar but keep scrolling?
Yes, set scrollbar-width: none for Firefox and ::-webkit-scrollbar { display: none } for WebKit browsers. The element will still scroll, but the scrollbar will be invisible.
Comments
More in CSS & Design
- Color Converter
- CSS Gradient Generator
- Box Shadow Generator
- PX to REM Converter
- Color Palette Generator
- Color Contrast Checker
- Tailwind Color Picker
- CSS Animation Generator
Comments