Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scrollbar css

/* just so you can scroll */
html, body {
  margin: 0;
  padding: 500px;
}

/* actual styles */
body {
  overflow: overlay;
}

.div1 {
  background: grey;
  margin-top: 200px;
  margin-bottom: 20px;
  height: 20px;
}

::-webkit-scrollbar {
  width: 18px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 200px;
  border: solid 4px transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}
 
PREVIOUS NEXT
Tagged: #scrollbar #css
ADD COMMENT
Topic
Name
7+2 =