Scrollbar Styler
Design custom scrollbars for webkit browsers and Firefox with live preview.
Presets
Click to apply
Scrollbar Settings
Use * for all elements, or specify a class/element
Live Preview
Vertical
Horizontal
Scrollbar anatomy:
8px
• Track: #f1f5f9
• Thumb: #3b82f6
• Hover: #2563eb
• Radius: 8px
Generated CSS
/* Webkit Scrollbar Styles (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
width: 8px;
height: 8px; /* for horizontal scrollbars */
}
*::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 0px;
}
*::-webkit-scrollbar-thumb {
background: #3b82f6;
border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
background: #2563eb;
}
/* Firefox (limited support) */
* {
scrollbar-width: auto;
scrollbar-color: #3b82f6 #f1f5f9;
}
/* Hide scrollbar but keep scrolling (accessibility note: use with caution) */
/*
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
*/
/* Note: Scrollbar styling is not standardized across all browsers.
Webkit-based browsers (Chrome, Safari, Edge) have full support.
Firefox supports scrollbar-color and scrollbar-width only.
The ::-webkit-scrollbar pseudoelements are not part of the CSS spec. */