How to make my scale rating mobile responsive

  • supportcpl
    Asked on February 19, 2020 at 10:35 AM

    Can you please provide CSS to make the scales at the end of the survey (Q8A-Q8G) fit on a phone screen? We would like to keep the rating text. 

  • Sonnyfer JotForm Support
    Replied on February 19, 2020 at 12:47 PM

    Hi,

    Please allow me some time while I do some tests on my end. I'll get back to you in this thread as soon as I have results to share.

  • Sonnyfer JotForm Support
    Replied on February 19, 2020 at 2:11 PM

    Thanks for your patience.

    Please try injecting this CSS code to your form and let us know how it goes.

    @media screen and (max-width: 480px) {

      .form-scale-table th, .form-scale-table td {

        padding: 0px;

        font-size: 70%;

      }

    }

    Guide: How-to-Inject-Custom-CSS-Codes


  • supportcpl
    Replied on February 19, 2020 at 2:25 PM

    That looks great, except that it adds both vertical and horizontal scroll bars, even though everything seems to fit within the limits of the screen. Is there a way to prevent those from appearing?

    1582140263mobile capture Screenshot 10     1582140286tablet capture Screenshot 21


  • Sonnyfer JotForm Support
    Replied on February 19, 2020 at 4:42 PM

    Hi,

    As requested, kindly inject below CSS code if you wish to get rid of both scrollbars.

    .form-line.jf-required{

      overflow:hidden;

    }

    1582148459carrollton Screenshot 10

    Please let us know if you need further assistance.

  • supportcpl
    Replied on February 19, 2020 at 4:49 PM

    Thank you! This was exactly what we were looking to do.