css style scrollbar
CSS
/* 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 /* 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;
}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;
}/* 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;
}
Also in CSS:
- Title
- To set HTML attribute and css styles in html helper control in mvc
- Category
- CSS
- Title
- free css templates
- Category
- CSS
- Title
- how to center align the html element in css examples
- Category
- CSS
- Title
- css backgroud position
- Category
- CSS
- Title
- sweet alert
- Category
- CSS
- Title
- how to create two vertical div in html
- Category
- CSS
- Title
- how to change the background color in css
- Category
- CSS
- Title
- css ios disable zoom
- Category
- CSS
- Title
- css animation
- Category
- CSS
- Title
- css flex
- Category
- CSS
- Title
- vue scss
- Category
- CSS
- Title
- How to prevent anchor links from scrolling behind a sticky header with one line of CSS
- Category
- CSS
- Title
- css feather border
- Category
- CSS
- Title
- adding css to html body
- Category
- CSS
- Title
- css media query
- Category
- CSS
- Title
- responsive youtube video on a website
- Category
- CSS
- Title
- button href
- Category
- CSS
- Title
- horizontal list css
- Category
- CSS
- Title
- css thinner hr
- Category
- CSS
- Title
- css grid area
- Category
- CSS
- Title
- change color select arrow css cf7
- Category
- CSS
- Title
- image crop using css 1:1
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- tradutt
- Category
- CSS
- Title
- css text transform
- Category
- CSS
- Title
- css fade out
- Category
- CSS
- Title
- multiple transition in css
- Category
- CSS
- Title
- how to use visited hover active and visited in css
- Category
- CSS
- Title
- how to get random images
- Category
- CSS
- Title
- how long ago was 1993 years
- Category
- CSS
- Title
- loading screen svg and css animation
- Category
- CSS
- Title
- git clone command in terminal
- Category
- CSS
- Title
- learn css animation
- Category
- CSS
- Title
- how to make a text at the top of page in css
- Category
- CSS
- Title
- css odd even child
- Category
- CSS
- Title
- css scaling border radius
- Category
- CSS
- Title
- scss to css
- Category
- CSS
- Title
- how to change height font css
- Category
- CSS
- Title
- media queries css not working for mobile
- Category
- CSS
- Title
- custom scrollbar
- Category
- CSS
- Title
- css how to add double shadow to text
- Category
- CSS
- Title
- pure css heart
- Category
- CSS
- Title
- overflow css
- Category
- CSS
- Title
- hr css mdn
- Category
- CSS
- Title
- dashed lin in css
- Category
- CSS
- Title
- how to change the height of an image in css
- Category
- CSS
- Title
- how to make gradient backgroud cover whole page in html
- Category
- CSS
- Title
- css selectors w3schools
- Category
- CSS
- Title
- html static background
- Category
- CSS
- Title
- como botar um separador display flex quebra de linha
- Category
- CSS
- Title
- css hero image
- Category
- CSS
- Title
- css overflow hide scrollbar when not needed
- Category
- CSS
- Title
- open sublime text 3 from terminal mac
- Category
- CSS
- Title
- media querycss
- Category
- CSS
- Title
- css in sql query
- Category
- CSS
- Title
- font-weight css
- Category
- CSS
- Title
- Uncaught SyntaxError: Unexpected token '.' inside scss file
- Category
- CSS
- Title
- how to overlay text on an image css
- Category
- CSS
- Title
- DISABLE the Horizontal Scroll
- Category
- CSS
- Title
- css center div
- Category
- CSS
- Title
- sphinx css templates
- Category
- CSS
- Title
- how to center a div vertically and horizontally
- Category
- CSS
- Title
- edit scrollbar css
- Category
- CSS
- Title
- box model css
- Category
- CSS
- Title
- add sucssess message laravel
- Category
- CSS
- Title
- input remove blue glow
- Category
- CSS
- Title
- div scrollable content
- Category
- CSS
- Title
- css hide mark border
- Category
- CSS
- Title
- font roboto css
- Category
- CSS
- Title
- css text shadow not showing in mac chrome
- Category
- CSS
- Title
- css gradient border
- Category
- CSS
- Title
- transform rotate css
- Category
- CSS
- Title
- how to add 2 text shadows
- Category
- CSS
- Title
- dotted line css
- Category
- CSS
- Title
- how to create popup css
- Category
- CSS
- Title
- css system default font
- Category
- CSS
- Title
- change the weight of a bold font css
- Category
- CSS
- Title
- 1:1 image in css
- Category
- CSS
- Title
- choose grid position html
- Category
- CSS
- Title
- css display grid
- Category
- CSS
- Title
- how to bring logo in line with nav bar using css
- Category
- CSS
- Title
- css transition transform
- Category
- CSS
- Title
- how rotate infinity css
- Category
- CSS
- Title
- css border width
- Category
- CSS
- Title
- css hide element
- Category
- CSS
- Title
- how to make border for letters in css
- Category
- CSS
- Title
- png shadow css
- Category
- CSS
- Title
- how to serve css through go
- Category
- CSS
- Title
- use css in cshtml
- Category
- CSS
- Title
- html image slider
- Category
- CSS
- Title
- changong text color css
- Category
- CSS
- Title
- label for centered image
- Category
- CSS
- Title
- materialize css
- Category
- CSS
- Title
- chat bot with a floating button html and css
- Category
- CSS
- Title
- how to change color of svg with css
- Category
- CSS
- Title
- margin css
- Category
- CSS
- Title
- :root css
- Category
- CSS
- Title
- css animated background
- Category
- CSS
- Title
- css anchor fill parent
- Category
- CSS
- Title
- sub menu disappears on hover css
- Category
- CSS