Specify difference between document & scrollable div

This commit is contained in:
atomiks
2018-03-01 18:41:26 +10:00
committed by GitHub
parent 6cbeabcb34
commit 8d548de401

View File

@ -13,6 +13,7 @@ Customizes the scrollbar style for the document and elements with scrollable ove
#### CSS
```css
/* Document scrollbar */
::-webkit-scrollbar {
width: 8px;
}
@ -26,6 +27,10 @@ Customizes the scrollbar style for the document and elements with scrollable ove
border-radius: 10px;
box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
/* Scrollable element */
.some-element::webkit-scrollbar {
}
```
#### Demo