Last active
February 6, 2018 08:51
-
-
Save LeaVerou/b639cbdd5c7b3e48e9d1e0a5af188869 to your computer and use it in GitHub Desktop.
Case for styling scrollbars
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
/** | |
* Case for styling scrollbars | |
*/ | |
body { background: black } | |
div { | |
width: 200px; | |
height: 200px; | |
border: 1px solid gray; | |
overflow: scroll; | |
color: white; | |
white-space: pre-line; | |
} |
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
<div>Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum | |
Lorem Ipsum</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"110","seethrough":"","prefixfree":"","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment