Search
 
SCRIPT & CODE EXAMPLE
 

CSS

scrollbar thumb height css

::-webkit-scrollbar-button {
  height: 12px;
}
::-webkit-scrollbar {
    width: 12px;
}
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255,0,0,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(255,0,0,0.4);
}
Comment

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

scrollbar height css

::-webkit-scrollbar-button {
  height: 12px;
}
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

PREVIOUS NEXT
Code Example
Css :: hiden file upload button css 
Css :: smooth transition css on hover 
Css :: css hide scroll 
Css :: texto vertical css 
Css :: css breakpoints 
Css :: rounded input css 
Css :: Remove Or Hide Default Spinner Input Number 
Css :: box sizing reset 
Css :: css center text in div 
Css :: tailwindcss init full 
Css :: remove bootstrap button outline 
Css :: css link 
Css :: css make text transparent 
Css :: grid center css 
Css :: highlight table row on hover 
Css :: css height animation 
Css :: add youtube video in markdown 
Css :: how to include one css file in another 
Css :: repeat with auto-fit 
Css :: css remove scrollbars 
Css :: css table column spacing 
Css :: css pause animation 
Css :: duplicate box-shadow on element inner and outer 
Css :: css multiple backgrounds 
Css :: how to make a div fill the screen 
Css :: css text stroke 
Css :: make blinking cursor disappear css 
Css :: text overflow ellipsis two lines 
Css :: remve arrow from input ype number 
Css :: How to make blinking/flashing text with CSS 3 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =