Need help with customizing ui slider
Hello guys.
Im new to jQ and jQ UI but I have managed to get pretty far by myself.
I have really struggle the last 4-5 hours. Searching for all kinds of solutions, but I CAN'T really style the slider button at all! I have tried all sorts of .ui-slider-handler class but It wont style at all.. So I really need your help with this!
I have only managed to find 1 way to style the inner slider with a different color.
I would also like to know where I can find all the css classes for styling. So far I have managed to find some in the ui files, but its a loong 1 line list.. and there's not much information about styling on the slider-help page either! Thanks in advance :)
HTML/JS
- <div id="slider"></div>
- <script type="text/javascript">
- $(document).ready(function(){
-
- $(function() {
- $( "#slider" ).slider({
- range: "min",
- value: 0,
- min: 0,
- max: 15000,
- slide: function( event, ui ) {
- $( "#amount" ).val(ui.value );
- }
- });
- $( "#amount" ).val($( "#slider" ).slider( "value" ) );
- });
- });
- </script>
CSS
- #slider{
- width: 400px;
- margin: 50px 0 0 50px;
- background-color: #fff;
- }
-
- .ui-slider-range.ui-widget-header{
- background: #e4b15f;
- }
-
- .ui-slider .ui-slider-handle {
- position: absolute;
- z-index: 2;
- width: 1.2em;
- height: 1.2em;
- cursor: default;
- outline: none;
- }