html - Scrollbar thumb height in css -


is height of scroll thumb set default according scroll-able area? if not, can set scrollbar thumb height? if possible how? tried following way.

body::-webkit-scrollbar-thumb {   background-color: darkgrey;   outline: 1px solid slategrey;   height: 5px; } 

but have no impact on page. please help. in advance.

i don't think so, height of thumb based in size of content, can change width inside ::-webkit-scrollbar height based on content.

::-webkit-scrollbar              { /* 1 */ } ::-webkit-scrollbar-button       { /* 2 */ } ::-webkit-scrollbar-track        { /* 3 */ } ::-webkit-scrollbar-track-piece  { /* 4 */ } ::-webkit-scrollbar-thumb        { /* 5 */ } ::-webkit-scrollbar-corner       { /* 6 */ } ::-webkit-resizer                { /* 7 */ } 

css-tricks

enter image description here

source


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -