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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -