custom scroll bar
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;
} /* 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
- fabric bring to front element top
- Category
- CSS
- Title
- css change text
- Category
- CSS
- Title
- css grid tutorial
- Category
- CSS
- Title
- media queries les plus utilisees
- Category
- CSS
- Title
- how to create two vertical div in html
- Category
- CSS
- Title
- html font white text with black border
- Category
- CSS
- Title
- margin in css
- Category
- CSS
- Title
- how to overlay text on an image css
- Category
- CSS
- Title
- how to link locally installed fonts to css
- Category
- CSS
- Title
- clip path css
- Category
- CSS
- Title
- text vertical align css
- Category
- CSS
- Title
- symfony new project
- Category
- CSS
- Title
- how to use child selectors in css
- Category
- CSS
- Title
- css url do not change color of visited links
- Category
- CSS
- Title
- css background attachment
- Category
- CSS
- Title
- css width calculation
- Category
- CSS
- Title
- css window height
- Category
- CSS
- Title
- w3 link fontawesome
- Category
- CSS
- Title
- Jquery .css
- Category
- CSS
- Title
- responsive youtube video on a website
- Category
- CSS
- Title
- all child css
- Category
- CSS
- Title
- count no. of ways to partition in k subsets
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- css first child
- Category
- CSS
- Title
- css how to stop screen from left and right
- Category
- CSS
- Title
- hegith specific css in media query
- Category
- CSS
- Title
- breakpoint bootstrap
- Category
- CSS
- Title
- hwo to use flexbox to make a nav bar
- Category
- CSS
- Title
- css flex property
- Category
- CSS
- Title
- svg tailwind
- Category
- CSS
- Title
- pixel to inches
- Category
- CSS
- Title
- css overlapping divs
- Category
- CSS
- Title
- css margin
- Category
- CSS
- Title
- css link
- Category
- CSS
- Title
- flexbox grid
- Category
- CSS
- Title
- how to add css to html
- Category
- CSS
- Title
- css border botttom
- Category
- CSS
- Title
- css z index
- Category
- CSS
- Title
- force to load https
- Category
- CSS
- Title
- change background input css
- Category
- CSS
- Title
- justify content
- Category
- CSS
- Title
- css note
- Category
- CSS
- Title
- css font style
- Category
- CSS
- Title
- css grid center elements inside div
- Category
- CSS
- Title
- line height negative css
- Category
- CSS
- Title
- how to stop an image repeating in css
- Category
- CSS
- Title
- text shadow css generator
- Category
- CSS
- Title
- css disable user interaction
- Category
- CSS
- Title
- kotlin exit app
- Category
- CSS
- Title
- css how to center images in a table cell
- Category
- CSS
- Title
- width defined by content css
- Category
- CSS
- Title
- prevent text from wrapping in css
- Category
- CSS
- Title
- transparent button css
- Category
- CSS
- Title
- css selectors w3schools
- Category
- CSS
- Title
- large input box bootstrap 4
- Category
- CSS
- Title
- !important css
- Category
- CSS
- Title
- If you're trying to use a package make sure that '../../static/fonts/lato/Lato-Regular.woff' is installed. If you're trying to use a local file make sure that the path is correct.
- Category
- CSS
- Title
- css fade out
- Category
- CSS
- Title
- change font awesome icon color
- Category
- CSS
- Title
- how to make maenu icon in css
- Category
- CSS
- Title
- flex-wrap: wrap
- Category
- CSS
- Title
- vertical align span tailwindscss
- Category
- CSS
- Title
- image blur css
- Category
- CSS
- Title
- css grid
- Category
- CSS
- Title
- css animation linear
- Category
- CSS
- Title
- make image darker in css
- Category
- CSS
- Title
- button two lines on ipad
- Category
- CSS
- Title
- font weight css
- Category
- CSS
- Title
- how to create a shape in css
- Category
- CSS
- Title
- have button beside form input
- Category
- CSS
- Title
- css shadow generator
- Category
- CSS
- Title
- comment out css inline
- Category
- CSS
- Title
- css font type
- Category
- CSS
- Title
- laavel relation through morph
- Category
- CSS
- Title
- how to give page a random background image css
- Category
- CSS
- Title
- add css to class=["col-"]
- Category
- CSS
- Title
- carousel inner item populate with for loop puting active class on all carousel item
- Category
- CSS
- Title
- keep aspect ratio of image css
- Category
- CSS
- Title
- css grid example
- Category
- CSS
- Title
- css backdrop filter blut
- Category
- CSS
- Title
- how to margin placeholdr text
- Category
- CSS
- Title
- css ripple effect
- Category
- CSS
- Title
- how long ago was 1993 years
- Category
- CSS
- Title
- css grid vs flexbox
- Category
- CSS
- Title
- make div the size of the text inside
- Category
- CSS
- Title
- center div horizontally and vertically
- Category
- CSS
- Title
- fullcalendar react
- Category
- CSS
- Title
- css italic text
- Category
- CSS
- Title
- inline css
- Category
- CSS
- Title
- over to remove padding css
- Category
- CSS
- Title
- custom scroll bar
- Category
- CSS
- Title
- static css in django
- Category
- CSS
- Title
- border-box css
- Category
- CSS
- Title
- font height css
- Category
- CSS
- Title
- all cursor types
- Category
- CSS
- Title
- textarea only one line
- Category
- CSS
- Title
- css fill div with background image
- Category
- CSS
- Title
- background image in css
- Category
- CSS
- Title
- css thinner hr
- Category
- CSS
- Title
- how to make text uppercase in css
- Category
- CSS