How do i inject CSS in Sliders with calculated result

  • dave_myinfinite
    Asked on August 10, 2016 at 9:16 PM

    https://form.jotform.com/62226782199162

    I am able to inject code in the CSS tab, but I don't know what to put in this tab.

    I want to

    1) Move the labels to the top

    2) Increase the width of the slider

    3) Change the slider color to green

    4) Decrease spacing between the rows (I  found this example, but nothing happened on my form)

    Jotform Thread 903414 Screenshot
  • Nik_C
    Replied on August 11, 2016 at 3:04 AM

    You will have to inject the following CSS code to your slider with calculated result widget:

    .label_row {

        width: 100%;

        position: relative;

        float: left;

    }

    .slider_row_ {

        float: left;

    }

    .value_row {

        display: inline-block;

        top: 8px;

        position: relative;

    }

    div.slider.slider.ui-slider.ui-slider-horizontal > a.ui-slider-handle {

        background-color: green;

        background-image: none;

    }

    td > div.wrapper {

        background-color: #00ff00;

    }

    div.slider.slider.ui-slider.ui-slider-horizontal {

        background-color: #ccff99;

        background-image: none;

    }

    .wrapper{

    border:3px solid red;

    }

    The green code I have provided will move the label to the top.

    How do i inject CSS in Sliders with calculated result Image 1 Screenshot 70

    The code with orange background changes the slider control color:

    How do i inject CSS in Sliders with calculated result Image 2 Screenshot 81

    The Blue code changes the following properties on the slider:

    How do i inject CSS in Sliders with calculated result Image 3 Screenshot 92

    Light green code changes the color of the slider background:

    How do i inject CSS in Sliders with calculated result Image 4 Screenshot 103

    The Purple part of the code will change the border color to red:

    How do i inject CSS in Sliders with calculated result Image 5 Screenshot 114

     

    I have created this CSS code for all the properties in the slider. You can use the code separately so you can design the slider to your liking.

    To find out where to inject the code to the widget please follow this guide:

    How do i inject CSS in Sliders with calculated result Image 6 Screenshot 125

     

    Let us know if you need more information.

     

  • Nik_C
    Replied on August 11, 2016 at 3:46 AM

    You can change the width of widget by going to widget preferences:

    How do i inject CSS in Sliders with calculated result Image 1 Screenshot 30

    You need to change the width property, I have changed the value from 400px to 800px in this example.

    How do i inject CSS in Sliders with calculated result Image 2 Screenshot 41

    I will provide an answer for the way how you can decrease the spacing for the slider calculation widget shortly. 

    Thank you for your patience.

  • Nik_C
    Replied on August 11, 2016 at 3:55 AM

    You can change the spacing between the slider widgets by changing the height of the widget. You can use the guide I have provided in the previous answer and just change the height accordingly.

    Let us know if you need any information.