Specify difference between document & scrollable div
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user