When customizing the height/width of the jQuery UI Slider (and handle), the handle will now slide too far left (off of slider). Is there a recommended way of going about doing this?
Here's a fiddle to show you what I mean: http://jsfiddle.net/w7A4k/
I didn't see anything in the API Documentation for this, and I'm using a very basic setup:
$("#slider").slider({
orientation: "horizontal",
max: 100,
min: 0
});
Unit size of JQuery UI Slider is in em
. Therefore slider size is relative to its font size.
Try
fiddle demo
.ui-slider .ui-slider-handle {
height: 15px;
width: 5px;
padding-left: 5px; //add this
}
padding-left: 5px;
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