I would like to style range slider with css but all examples I found are not styled in internet explorer 11 where slider looks like so:

Do you know how to style it and why only ie 11 show no style when defined?
IE11 gives you a few pseudo elements related to the range input, which you can read about here.
::-ms-fill-lower controls styling of the sliders track before the slider thumb
::-ms-fill-upper same as above, but after the thumb
::-ms-thumb - for the slider thumb itself.
::-ms-tooltip - controls styling of the tooltip of a slider
::-ms-track styles the sliders individual tracks.
An example fiddle
::-ms-fill-lower {
background: coral;
}
::-ms-fill-upper {
background: peru;
}
::-ms-thumb {
background: steelblue;
}
In addition to the 5 pseudo-elements mentioned by @adrift, there are 2 more related to ticks. So to recap:
::-ms-fill-lower controls styling of the sliders track before the slider thumb::-ms-fill-upper same as above, but after the thumb::-ms-thumb the slider thumb itself.::-ms-tooltip controls styling of the tooltip of a slider::-ms-track styles the sliders individual tracks::-ms-ticks-before styles tick marks that appear before the track::-ms-ticks-after styles tick marks that appear after the trackNote that you can have 3 different sets of ticks (!): the track has its own set. Use color: transparent to hide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With