Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Last active February 6, 2018 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LeaVerou/b639cbdd5c7b3e48e9d1e0a5af188869 to your computer and use it in GitHub Desktop.
Save LeaVerou/b639cbdd5c7b3e48e9d1e0a5af188869 to your computer and use it in GitHub Desktop.
Case for styling scrollbars
/**
* Case for styling scrollbars
*/
body { background: black }
div {
width: 200px;
height: 200px;
border: 1px solid gray;
overflow: scroll;
color: white;
white-space: pre-line;
}
<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>
// alert('Hello world!');
{"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