Created
April 1, 2020 11:57
-
-
Save rdnt/6e2e0f6b0667cb391cd8a3bf3d094ddf to your computer and use it in GitHub Desktop.
hide scrollbar but allow scroll
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
.element { | |
scrollbar-width: none; | |
-ms-overflow-style: none; | |
overflow-y: scroll; | |
overflow-x: hidden; | |
} | |
.element::-webkit-scrollbar { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment