custom scrollbar
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;
}body::-webkit-scrollbar {
width: 12px; /* width of the entire scrollbar */
}
body::-webkit-scrollbar-track {
background: orange; /* color of the tracking area */
}
body::-webkit-scrollbar-thumb {
background-color: blue; /* color of the scroll thumb */
border-radius: 20px; /* roundness of the scroll thumb */
border: 3px solid orange; /* creates padding around scroll thumb */
} /* 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;
} ::-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;
}/* 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
- neomorphic box
- Category
- CSS
- Title
- css cursor pointer
- Category
- CSS
- Title
- background color css rgb
- Category
- CSS
- Title
- css tricks media queries
- Category
- CSS
- Title
- E/ViewRootImpl: sendUserActionEvent() mView returned.
- Category
- CSS
- Title
- aliceblue hex
- Category
- CSS
- Title
- js add css to document
- Category
- CSS
- Title
- how to cover full image in css
- Category
- CSS
- Title
- transition prefixes css
- Category
- CSS
- Title
- css keep background image from scrolling
- Category
- CSS
- Title
- css affect all child elements
- Category
- CSS
- Title
- on click css
- Category
- CSS
- Title
- opacity transition in css
- Category
- CSS
- Title
- how to set border length in css without div
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- tailwindcss init full
- Category
- CSS
- Title
- css grid generator
- Category
- CSS
- Title
- rotate element css
- Category
- CSS
- Title
- edit scrollbar css
- Category
- CSS
- Title
- zoom css
- Category
- CSS
- Title
- html display text in alternating coloured panels
- Category
- CSS
- Title
- select box arrow hide css in ie
- Category
- CSS
- Title
- css grid
- Category
- CSS
- Title
- css hover
- Category
- CSS
- Title
- css mark color
- Category
- CSS
- Title
- Safari only CSS hack
- Category
- CSS
- Title
- how to write css in html
- Category
- CSS
- Title
- clear both css
- Category
- CSS
- Title
- underline text using css
- Category
- CSS
- Title
- css child multiple of 3
- Category
- CSS
- Title
- laavel relation through morph
- Category
- CSS
- Title
- css fade out
- Category
- CSS
- Title
- QAnon Won't believe who
- Category
- CSS
- Title
- equivalent zoom css
- Category
- CSS
- Title
- access lamp folder using terminal mac
- Category
- CSS
- Title
- chat bot with a floating button html and css
- Category
- CSS
- Title
- gradient image css
- Category
- CSS
- Title
- update data in firestore
- Category
- CSS
- Title
- mettre une image au milieu css
- Category
- CSS
- Title
- css center text
- Category
- CSS
- Title
- overflow dottet
- Category
- CSS
- Title
- how to overwrite im css
- Category
- CSS
- Title
- center ul
- Category
- CSS
- Title
- css grid area
- Category
- CSS
- Title
- css border botttom
- Category
- CSS
- Title
- css italics
- Category
- CSS
- Title
- css perspective
- Category
- CSS
- Title
- css transition opacity
- Category
- CSS
- Title
- css translate3d
- Category
- CSS
- Title
- ramteja
- Category
- CSS
- Title
- css preprocessor
- Category
- CSS
- Title
- box shadow
- Category
- CSS
- Title
- line-height css
- Category
- CSS
- Title
- change select arrow css
- Category
- CSS
- Title
- pure css heart
- Category
- CSS
- Title
- formatting checkbox css
- Category
- CSS
- Title
- css background image is not show change default picture
- Category
- CSS
- Title
- select first div css
- Category
- CSS
- Title
- Get Theme from URL Parameter and enable CSS theme
- Category
- CSS
- Title
- materializecss
- Category
- CSS
- Title
- css :focus
- Category
- CSS
- Title
- svg css
- Category
- CSS
- Title
- react import css
- Category
- CSS
- Title
- css set variable
- Category
- CSS
- Title
- how to vertically align text css
- Category
- CSS
- Title
- css in js
- Category
- CSS
- Title
- flex wrap css
- Category
- CSS
- Title
- css to scss
- Category
- CSS
- Title
- pseudo elements css
- Category
- CSS
- Title
- css triangle generator
- Category
- CSS
- Title
- css flex divide evenly
- Category
- CSS
- Title
- vuetify background color
- Category
- CSS
- Title
- css change multiple classes
- Category
- CSS
- Title
- css border
- Category
- CSS
- Title
- how to make borders rounded in css
- Category
- CSS
- Title
- css transitions
- Category
- CSS
- Title
- css transform size
- Category
- CSS
- Title
- how to make text not highlightable css
- Category
- CSS
- Title
- how to make gradient backgroud cover whole page in html
- Category
- CSS
- Title
- css ie11 only
- Category
- CSS
- Title
- nth child css
- Category
- CSS
- Title
- vertcial text css
- Category
- CSS
- Title
- how to change the height of an image in css
- Category
- CSS
- Title
- how to write css for input type text
- Category
- CSS
- Title
- css background image fit
- Category
- CSS
- Title
- css animation
- Category
- CSS
- Title
- custom confirm box css
- Category
- CSS
- Title
- custom checkbox with image css
- Category
- CSS
- Title
- how do i make a div full width with css
- Category
- CSS
- Title
- center div vertically html css
- Category
- CSS
- Title
- font awesome css link
- Category
- CSS
- Title
- text-overflow ellipsis multiple lines
- Category
- CSS
- Title
- how long ago was 1993 years
- Category
- CSS
- Title
- scss hover
- Category
- CSS
- Title
- textarea only one line
- Category
- CSS
- Title
- how to underline font in css
- Category
- CSS
- Title
- css light grey
- Category
- CSS
- Title
- css background image opacity
- Category
- CSS
- Title
- stop the client from scrolling
- Category
- CSS
- Title
- lorem.picsum
- Category
- CSS