Modify Jquery UI slider control

Posted by Jean-Yves Deman on Stack Overflow See other posts from Stack Overflow or by Jean-Yves Deman
Published on 2012-12-15T10:40:26Z Indexed on 2012/12/15 11:04 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

I use the Jquery UI slider control. My slider has a width of 200px. I would like the center of my left handle is shifted 14px to the right and the center of my right handle is offset to the left of 14px. So, my good slider will more than 172px (200-14-14). The background-image measure good 200px. The length of 14px is calculated as follows: width of the handle (28px) / 2. Can you help me solve this mystery? Thank you in advance.

.ui-slider .ui-slider-handle {
    width:28px; 
    height:28px; 
    background:url(images/bulle.png) no-repeat 0 0;
    overflow: hidden; 
    position:absolute;
    margin-left:0px;
    top: -7px;
    border-style:none;
    cursor:help;
}?

I use "margin-left:0px;" to delete the "margin-left:-14px" by default. But, my right handle spring 28px to the right ! Help me please !

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about user-interface