I want to place the two thumbs in the slider which shows the range of values using CSS and HTML5. Please help me. Right now I have a slider with one thumb. I need a slider which has different background with that range and two thumbs present in it. My code goes here:
input[type=range] {
border: 1px solid #4ba8b1;
margin: 0px 0px 5px 5px;
background:-webkit-gradient(linear,center top, center bottom, from(#CFDCDD),to(#DFE9EA),color-stop(50%,#DFE9EA));
float:left;
pointer:cursor;
-webkit-appearance:none;
width:300px;
height:7px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
}
input[type=range]:hover::-webkit-slider-thumb {
-webkit-appearance:none;
background:url(images/Slider_v9.0_2.png);
background-position:center;
width:18px;
height:27px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance:none;
background:url(images/Slider_v9.0_1.png);
background-position:center;
width:18px;
height:27px;
}
input[type=range]:active::-webkit-slider-thumb {
-webkit-appearance:none;
background:url(images/Slider_v9.0_4.png);
background-position:center;
width:18px;
height:27px;
}
The HTML is:
<input type="range" min="0" max="150" value="30" />
Now placing of two thumbs is what I want. I am still searching for background too.