1
I want to modify a field’s value indicator <input type="range"/>
. I want to change the format and color of this indicator, as shown in the following images.
This is the field I want to modify. The indicator has this format of "box, and I want to modify to a format of "ball", "circle", etc., as in the examples below:
HTML: <p> <input type="range" id="campo" value="25" disabled/> </p>
CSS:
input[type=range] {
-webkit-appearance: none;
appearance: none;
display: inline-block;
width: 18em;
height: 0.5em;
position: relative;
left: 4em;
border-radius: 5px;
background-color: #3071a9;
outline: none;
}
input[type=range]::-webkit-slider-thumb{
border-radius: 50%;
}
#campo::-webkit-slider-thumb{
width: 25px;
height: 25px;
border-radius: 50%;
background: blue;
}
Thanks in advance.
Dude, it was more than okay, thanks. If you don’t mind, one more 'small' question... I saw that you have 'gold' in CSS in Stack Overflow. How did you learn? Recommend some course, book or something to improve? Thank you, and sorry for the inconvenience.
– Arthur Siqueira
@Arthursiqueira Guy actually where I most learn CSS is in the Mozilla documentation, there is like the Wikipedia of CSS, you enter a property, and has link to another property and so you are clicking on everything you do not know and reading and mainly testing there locally to see how it works etc. Another option is to search for basic tutorials on Youtube same, there tb has good things, and watch and try to replicate the examples. )
– hugocsl
This will help you a lot, but the main thing is to test and replicate in hand the content you will see. This helps a lot to understand CSS and see how it works in practice. 80% of CSS you will practically not use, but the other 20% vc will use 80% of the time! Rule 80/20 :), then study grazing base, box model, position, flex, display, etc
– hugocsl
Thanks, Hugo, you helped me too!
– Leandro Nascimento
@Leandronascimento speaks Leandro, good that helped you there, if you are researching this other issue tbm may have something that interests you https://answall.com/questions/265316/range-mudar-cor-da-barra-progressio-no-chrome/ abs
– hugocsl