Skip to content

CSS Scrollbar Generator

Embed

Paste this where you want CSS Scrollbar Generator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/css-scrollbar-generator/" width="100%" height="500" frameborder="0" loading="lazy" title="CSS Scrollbar Generator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/css-scrollbar-generator/">CSS Scrollbar Generator</a> by BrowserUtils</p>

Customize scrollbar styles with CSS.Runs in this tab.

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

About 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.

More in CSS & Design

All 22 css & design