::-webkit-scrollbar {
width: 2em;
height: 2em
}
::-webkit-scrollbar-button {
background: #ccc
}
::-webkit-scrollbar-track-piece {
background: #888
}
::-webkit-scrollbar-thumb {
background: #eee
}
/* The syntax, with all the available styling */
(selected-element)::-webkit-scrollbar {
width: 16px;
background: transparent;
display: none;
}
(selected-element)::-webkit-scrollbar-track {
background: whitesmoke;
border-radius: 3px;
}
(selected-element)::-webkit-scrollbar-thumb {
background: tomato;
border-radius: 10px;
}
/* A modern way of doing this */
selected-element {
scrollbar-width: thin; /* 'thin' or any usual number measurements like '5px' */
scrollbar-color: <thumb-color> <track-color>; /* Use normal color system i.e rgb or hex or hsl */
}
let scrollbarWidth = (window.innerWidth - document.body.clientWidth) + 'px';
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb {
background-color: darkgrey;
outline: 1px solid slategrey;
}
Code Example |
---|
Css :: ie showing close icon |
Css :: webkit appreance none select |
Css :: photo dropdown html |
Css :: css box sizing |
Css :: NeuMorphisme button code |
Css :: media query min and max width |
Css :: transform element to the left |
Css :: css multiple classes same rule |
Css :: Script for free code camp test |
Css :: print to pdf setting css for A4 size |
Css :: flexbox froggy |
Css :: Inline style |
Css :: highchart add font family |
Css :: andy bells css reset |
Css :: font size clamp generator |
Css :: make element auto scale to page |
Css :: css absolute in absolute |
Css :: image css in box |
Css :: border-radius order |
Css :: css float placeholder |
Css :: class html css |
Css :: three columsn css grid |
Css :: column count css |
Css :: how to customize placeholder css |
Css :: css properties |
Css :: css class inheritance |
Css :: how long ago was 1993 years |
Css :: daphne vs gunicorn |
Css :: footer for front end developer |
Css :: css space inter words |