Skip to content

Instantly share code, notes, and snippets.

@rikkiloades
Created May 2, 2013 08:03
Show Gist options
  • Save rikkiloades/5500829 to your computer and use it in GitHub Desktop.
Save rikkiloades/5500829 to your computer and use it in GitHub Desktop.
Styling an input type range in webkit.
input[type='range'] {
-webkit-appearance: none;
width:100%;
height: 15px;
padding:0;
border:none;
background-color:rgb(80, 80, 80);
background-image:none;
}
input[type='range']:hover {
background-color: rgb(80, 80, 80);
}
input[type='range']::-webkit-slider-thumb {
-webkit-appearance:none;
width:15px;
height:15px;
background-color:rgb(155, 155, 155);
background-image:none;
background-repeat: no-repeat;
background-position: 50%;
}
input[type='range']:hover::-webkit-slider-thumb {
background-color: rgb(50, 155, 255);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment