basic-scrollbar.html 862 Bytes
Newer Older
hyatt@apple.com's avatar
hyatt@apple.com committed
1 2 3 4 5 6 7 8 9
<head>
<style>
div::-webkit-scrollbar {
  width:17px;
  height:17px;
  background-color:grey;
}

div::-webkit-scrollbar-button {
10
  display:block;
hyatt@apple.com's avatar
hyatt@apple.com committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
  width: 17px;
  height: 17px;
  background-color:lightblue;
  border:2px solid black;
}

div::-webkit-scrollbar-thumb {
  background-color: navy;
  border:2px solid #cccccc;
}
</style>
</head>
<body>
<div style="width:200px; height:200px; overflow:auto">
Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>Hello<br>
Hello<br>Hello<br>Hello<br>
</div>