custom scrollbar css
CSS
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
} ::-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 */ }
/* Different States */
:horizontal
:vertical
:decrement
:increment
:start
:end
:double-button
:single-button
:no-button
:corner-present
:window-inactive
/* All toghether example */
::-webkit-scrollbar-track-piece:start {
/* Select the top half (or left half) or scrollbar track individually */
}
::-webkit-scrollbar-thumb:window-inactive {
/* Select the thumb when the browser window isn't in focus */
}
::-webkit-scrollbar-button:horizontal:decrement:hover {
/* Select the down or left scroll button when it's being hovered by the mouse */
}
/* Example */
body::-webkit-scrollbar {
width: 1em;
}
body::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
body::-webkit-scrollbar-thumb {
background-color: darkgrey;
outline: 1px solid slategrey;
}/* The emerging W3C standard
that is currently Firefox-only */
* {
scrollbar-width: thin;
scrollbar-color: blue orange;
}
/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
width: 12px;
}
*::-webkit-scrollbar-track {
background: orange;
}
*::-webkit-scrollbar-thumb {
background-color: blue;
border-radius: 20px;
border: 3px solid orange;
}
/* width */
*::-webkit-scrollbar {
width: 10px;
}
/* Track */
*::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
*::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
*::-webkit-scrollbar-thumb:hover {
background: #555;
} /* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
} /* Answer to: "custom scrollbar css" */
#yourContainer::-webkit-scrollbar {
width: 12.34px;
/* You can add other properties & values */
}
#yourContainer::-webkit-scrollbar-track {
background-color: #123456;
/* You can add other properties & values */
}
#yourContainer::-webkit-scrollbar-thumb {
background: #123456;
outline: 1px solid #654321;
/* You can add other properties & values */
}
/* To customize the default scrollbar, just do this: */
::-webkit-scrollbar { /* blah blah blah */ }
/* Notice how there's no selector ^^ */
/* Other things to note: */
::-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 */ }
/* Different States */
:horizontal
:vertical
:decrement
:increment
:start
:end
:double-button
:single-button
:no-button
:corner-present
:window-inactive
Also in CSS:
- Title
- typescript not supporting scss
- Category
- CSS
- Title
- png shadow css
- Category
- CSS
- Title
- !important in css
- Category
- CSS
- Title
- w3 link css
- Category
- CSS
- Title
- nth-child() css
- Category
- CSS
- Title
- onhover mouse pointer css
- Category
- CSS
- Title
- how to style input fields in css
- Category
- CSS
- Title
- clear both css
- Category
- CSS
- Title
- background image with color overlay gradient css
- Category
- CSS
- Title
- breakpoint bootstrap
- Category
- CSS
- Title
- css text shadow not showing in mac chrome
- Category
- CSS
- Title
- default position css
- Category
- CSS
- Title
- How to prevent anchor links from scrolling behind a sticky header with one line of CSS
- Category
- CSS
- Title
- image cover css
- Category
- CSS
- Title
- css horizontal gradient background color
- Category
- CSS
- Title
- css important
- Category
- CSS
- Title
- mobile tablet desktop media queries
- Category
- CSS
- Title
- aos animate
- Category
- CSS
- Title
- child css
- Category
- CSS
- Title
- position sticky css
- Category
- CSS
- Title
- how to change the background color in css
- Category
- CSS
- Title
- css multiple classes
- Category
- CSS
- Title
- link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"
- Category
- CSS
- Title
- justify text csss
- Category
- CSS
- Title
- bootstrap 4 material icon vertical align
- Category
- CSS
- Title
- select box arrow hide css in ie
- Category
- CSS
- Title
- crop image css
- Category
- CSS
- Title
- docker exec bash
- Category
- CSS
- Title
- how to darken background image with css
- Category
- CSS
- Title
- learn css animation
- Category
- CSS
- Title
- css animation library
- Category
- CSS
- Title
- make image scale based on screen size
- Category
- CSS
- Title
- background image overlay
- Category
- CSS
- Title
- flex wrap css
- Category
- CSS
- Title
- css note
- Category
- CSS
- Title
- change img src css
- Category
- CSS
- Title
- what is responsive design
- Category
- CSS
- Title
- move bullets in css
- Category
- CSS
- Title
- bootstrap cdn
- Category
- CSS
- Title
- three dots in css
- Category
- CSS
- Title
- css grid mdn
- Category
- CSS
- Title
- make td match display flex
- Category
- CSS
- Title
- display table css
- Category
- CSS
- Title
- stop the client from scrolling
- Category
- CSS
- Title
- how to change the bullet points in css
- Category
- CSS
- Title
- overflow css
- Category
- CSS
- Title
- css child multiple of 3
- Category
- CSS
- Title
- css box shadow
- Category
- CSS
- Title
- html hide list bullet
- Category
- CSS
- Title
- how to center placeholdr text
- Category
- CSS
- Title
- table css
- Category
- CSS
- Title
- hover transition css
- Category
- CSS
- Title
- css center div
- Category
- CSS
- Title
- css rules only for mozilla
- Category
- CSS
- Title
- css span to right of div
- Category
- CSS
- Title
- print media css
- Category
- CSS
- Title
- full page background image
- Category
- CSS
- Title
- background color css
- Category
- CSS
- Title
- materializecss
- Category
- CSS
- Title
- press on button outline shoul not appear csss
- Category
- CSS
- Title
- how to use scss in html
- Category
- CSS
- Title
- do some css using js on selector
- Category
- CSS
- Title
- padding css shorthand
- Category
- CSS
- Title
- add css to an html file
- Category
- CSS
- Title
- css first child
- Category
- CSS
- Title
- css italic text
- Category
- CSS
- Title
- background color using css
- Category
- CSS
- Title
- Node.js: printing to console without a trailing newline
- Category
- CSS
- Title
- css add dots if text too long
- Category
- CSS
- Title
- opacity transition in css
- Category
- CSS
- Title
- html css how to arrange images of different sizes
- Category
- CSS
- Title
- npm 'cross-env' is not recognized as an internal or external command
- Category
- CSS
- Title
- css variable
- Category
- CSS
- Title
- css padding
- Category
- CSS
- Title
- how to stilize title property css
- Category
- CSS
- Title
- DISABLE the Horizontal Scroll
- Category
- CSS
- Title
- font height css
- Category
- CSS
- Title
- convert image in rounshape in css
- Category
- CSS
- Title
- i need show the message for when we are clicking routing page in anularjs
- Category
- CSS
- Title
- how to include one css file in another
- Category
- CSS
- Title
- how to change hyperlink color in css
- Category
- CSS
- Title
- card syntax html
- Category
- CSS
- Title
- link css with html
- Category
- CSS
- Title
- image blur css
- Category
- CSS
- Title
- css border width
- Category
- CSS
- Title
- css white-space
- Category
- CSS
- Title
- hwo to use flexbox to make a nav bar
- Category
- CSS
- Title
- css vw scrollbar
- Category
- CSS
- Title
- responsive css grid
- Category
- CSS
- Title
- responsive navbar
- Category
- CSS
- Title
- css keep image aspect ratio
- Category
- CSS
- Title
- how to move anything left in css
- Category
- CSS
- Title
- how to use hover in css
- Category
- CSS
- Title
- external css
- Category
- CSS
- Title
- react import css
- Category
- CSS
- Title
- css styling
- Category
- CSS
- Title
- how to change font in css
- Category
- CSS
- Title
- hide scrollbar html css
- Category
- CSS
- Title
- Uncaught SyntaxError: Unexpected token '.' inside scss file
- Category
- CSS
- Title
- css hiddden
- Category
- CSS