I have a Input of type range
<input id="counter" type="range" min="0" ></input>
with following css
#counter {
-webkit-appearance: none;
background-color: silver;
width: 200px;
height:10px;
border-radius:50px;
border-color:rgb(240, 61, 37);
}
#counter::-webkit-slider-thumb {
-webkit-appearance: none;
width:15px;
height:15px;
border-radius:50px;
content:"1";
background:rgb(240, 61, 37);
opacity:0.95;
}
Live Demo here
content:"1"; of css is not working at all, how to set some text to red color knob in output.
::-webkit-slider-thumbcannot accept thecontentproperty. Try setting a background image, instead.