Created
May 2, 2013 08:03
-
-
Save rikkiloades/5500829 to your computer and use it in GitHub Desktop.
Styling an input type range in webkit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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