Search
 
SCRIPT & CODE EXAMPLE
 

CSS

set scrollbar width css

::-webkit-scrollbar {
    width: 2em;
    height: 2em
}
::-webkit-scrollbar-button {
    background: #ccc
}
::-webkit-scrollbar-track-piece {
    background: #888
}
::-webkit-scrollbar-thumb {
    background: #eee
}​
Comment

css scrollbar width

/* 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 */
}
Comment

get scrollbar width css

let scrollbarWidth = (window.innerWidth - document.body.clientWidth) + 'px';
Comment

scrollbar width css

::-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;
}
Comment

PREVIOUS NEXT
Code Example
Css :: enlarge ionicons css 
Css :: how to affect a deffernt element in css 
Css :: programming languages logo css 
Css :: tynker bot 
Css :: winnat port already in use ERROR 
Css :: css cap rows paragraph 
Css :: @font-face in css 
Css :: separate three content in web 
Css :: react stateful 
Css :: sumar clases css 
Css :: how to change margin radius in css 
Css :: count elements with css if only you have just 2 - no more or less 
Css :: Galerija nije kreirana uspešno 
Css :: id selector 
Css :: css opposite selector 
Css :: overwrite theme css in parent css 
Css :: media query in css 
Css :: animated display css 
Css :: apple gradients 
Css :: the user specified as a definer does not exist 
Typescript :: ul dots remove 
Typescript :: font family system 
Typescript :: create database if not exists mysql true spring boot 
Typescript :: from sklearn.datasets import fetch_mldata error 
Typescript :: docker An attempt was made to access a socket in a way forbidden by its access permissions. 
Typescript :: replaceall nodejs 
Typescript :: ts disable is declared but its value is never read 
Typescript :: angular refresh page without reloading 
Typescript :: helm + if + not exists default true 
Typescript :: event in typescript 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =