Input range custom
by Léo Durand
HTML
<input type="range"/>
CSS
/*Chrome*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type='range'] {
overflow: hidden;
width: 200px;
-webkit-appearance: none;
background-color: lightgrey;
border-radius:50px;
}
input[type='range']::-webkit-slider-runnable-track {
height: 17px;
-webkit-appearance: none;
color: red;
border-radius:90px;
}
input[type='range']::-webkit-slider-thumb {
width: 17px;
-webkit-appearance: none;
height: 17px;
cursor: ew-resize;
background: black;
border-radius:20px;
border: 5px solid grey;
}
}
textarea:focus, input:focus{
outline: none;
}
/** FF*/
input[type="range"]::-moz-range-progress {
background-color: #43e5f7;
}
input[type="range"]::-moz-range-track {
background-color: #9a905d;
}
/* IE*/
input[type="range"]::-ms-fill-lower {
background-color: #43e5f7;
}
input[type="range"]::-ms-fill-upper {
background-color: #9a905d;
}