Created
May 2, 2020 17:13
-
-
Save jgoslow/4af5bfde2315fa3e975b7d3574e91ce7 to your computer and use it in GitHub Desktop.
How to style scrollbars in CSS (May 2020)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Coursey of https://alligator.io/css/css-scrollbars */ | |
/* The emerging W3C standard | |
that is currently Firefox-only */ | |
* { | |
scrollbar-width: thin; | |
scrollbar-color: blue orange; | |
} | |
/* Works on Chrome/Edge/Safari */ | |
*::-webkit-scrollbar { | |
width: 12px; | |
} | |
*::-webkit-scrollbar-track { | |
background: orange; | |
} | |
*::-webkit-scrollbar-thumb { | |
background-color: blue; | |
border-radius: 20px; | |
border: 3px solid orange; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment