Guys, please tell me how you can implement (stylize) the slider so that its fill bar expands smoothly from left to right. Specifics: how to make the slider so that at first it was 4px high, and at the end (width: 1920px;) its height was 32px?
Stuck guard as. Already the third day I do not sleep. Help, eh? And if there is an opportunity - explain how you managed to implement it?
<script type="text/javascript"> $("#slider").slider({ min: 0, max: 100, values: [0,100], range: true }); </script> CSS
/* Π¨ΠΈΡΠΈΠ½Π° ΡΠ»Π°ΠΉΠ΄Π΅ΡΠ° */ #slider { width: 200px; } /* ΠΠΎΠ½ΡΠ΅ΠΉΠ½Π΅Ρ ΡΠ»Π°ΠΉΠ΄Π΅ΡΠ° */ .ui-slider { position: relative; } /* ΠΠΎΠ»Π·ΡΠ½ΠΎΠΊ */ .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 13px; /* ΠΠ°Π΄Π°Π΅ΠΌ Π½ΡΠΆΠ½ΡΡ ΡΠΈΡΠΈΠ½Ρ */ height: 13px; /* ΠΈ Π²ΡΡΠΎΡΡ */ cursor: pointer } .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; overflow: hidden;} /* Π³ΠΎΡΠΈΠ·ΠΎΠ½ΡΠ°Π»ΡΠ½ΡΠΉ ΡΠ»Π°ΠΉΠ΄Π΅Ρ (ΡΠ°ΠΌΠ° ΠΏΠΎΠ»ΠΎΡΠ° ΠΏΠΎ ΠΊΠΎΡΠΎΡΠΎΠΉ Π±Π΅Π³Π°Π΅Ρ ΠΏΠΎΠ»Π·ΡΠ½ΠΎΠΊ) */ .ui-slider-horizontal { Height: 3px; /* Π·Π°Π΄Π°Π΅ΠΌ Π²ΡΡΠΎΡΡ */ } /* ΠΏΠΎΠ·ΠΈΡΠΈΠΎΠ½ΠΈΡΡΠ΅ΠΌ ΠΏΠΎΠ»Π·ΡΠ½ΠΊΠΈ */ .ui-slider-horizontal .ui-slider-handle { top: -5px; margin-left: -6px; } .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; } /* ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ ΠΏΠΎΠ»ΠΎΡΡ ΠΏΠΎ ΠΊΠΎΡΠΎΡΠΎΠΉ Ρ
ΠΎΠ΄ΠΈΡ ΠΏΠΎΠ»Π·ΡΠ½ΠΎΠΊ */ .ui-widget-content { border: 1px solid #D4D4D4; background: #fff; } /* ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π°ΠΊΡΠΈΠ²Π½ΠΎΠ³ΠΎ ΡΡΠ°ΡΡΠΊΠ° (ΠΌΠ΅ΠΆΠ΄Ρ Π΄Π²ΡΠΌΡ ΠΏΠΎΠ»Π·ΡΠ½ΠΊΠ°ΠΌΠΈ) */ .ui-widget-header { border: 1px solid #D4D4D4; background: #f00; } /* ΡΠΊΡΡΠ³Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΠΏΠΎΠ»ΠΎΡΡ ΡΠ»Π°ΠΉΠ΄Π΅ΡΠ° */ .ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } 