Skip to content

Instantly share code, notes, and snippets.

@yozawiratama
Last active December 19, 2015 05:49
Show Gist options
  • Save yozawiratama/5906734 to your computer and use it in GitHub Desktop.
Save yozawiratama/5906734 to your computer and use it in GitHub Desktop.
This is an example how to create scrolled div.
<div class="scrolled-div">
Content Here
</div>
.scrolled-div{
width: 900px;
height: 96%;
margin: auto;
overflow: auto;
}
.scrolled-div::-webkit-scrollbar {
width: 12px;
}
.scrolled-div::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
.scrolled-div::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment