Created
March 23, 2023 10:19
-
-
Save humayunahmed8/91ccf56f08509a4aa5a4c40def28591b to your computer and use it in GitHub Desktop.
How to design scrollbar with CSS
This file contains 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
/*======= Notebook =======*/ | |
.note-book-wrapper { | |
max-height: 710px; | |
overflow-y: scroll; | |
} | |
.note-book-wrapper::-webkit-scrollbar-track { | |
border-radius: 3px; | |
background-color: transparent; | |
} | |
.note-book-wrapper::-webkit-scrollbar { | |
width: 8px; | |
border-radius: 3px; | |
background-color: var(--color-off-white); | |
} | |
.note-book-wrapper::-webkit-scrollbar-thumb { | |
border-radius: 3px; | |
background-color: var(--color-soft-white-4); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment