I use the standard jQueryUI slider and want to change the appearance of the handle. I changed the CSS to
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 40px; height: 10px; cursor: default; border: 0; background-color: #c6c7c8; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.ui-slider-horizontal { height: 10px; border: 0; background-color: #eceded; }
.ui-slider-horizontal .ui-slider-handle { top: 0; margin-left: 0; }
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
I did so, to have the handle sitting in the "slider-lane". But if the handle is moved to the position far right, it sits just outside its lane.
Of course I could set .ui-slider-handle
's margin-left to -20px. But then on both ends it overlaps its lane.
Has it to do something with ui-slider-range-max
? But when inspecting the slider via Firebug, this CSS-class is not used anywhere.