Reputation: 2805
I am using html-5 slider
<input type="range" .. />
I want to slider's min
and max
values on its left and right side respectively . How can i do this?
Upvotes: 3
Views: 8241
Reputation: 36214
If you want to display min
and max
values on its left and right, just print there:
10 <input type="range" min="10" max="20" /> 20
You could use css too, though its not widely supported.
input[type="range"]:before {
content: attr(min) " ";
}
input[type="range"]:after {
content: " " attr(max);
}
Upvotes: 2
Reputation: 47667
Try
<input type="range" min="20" max="80" />
Also the following attributes can be applied to input type="range"
Upvotes: 3