How to make my form view in mobile responsive?

  • SignatureCleaning
    Asked on December 18, 2017 at 10:08 AM

    I added this to the CSS and my form is still wider when viewed sideways on mobile. 


    .form-all {

        width: 320px !important;

        margin-left: auto !important;

        margin-right: auto !important;

    }

    Jotform Thread 1326052 Screenshot
  • Richie JotForm Support
    Replied on December 18, 2017 at 10:23 AM

    You can try adding  media css codes to enable responsive view.

    @media screen and (max-width: 767px) and (min-width: 480px){
      .form-all {
        width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    }

    Here is a guide on how to inject custom css.

    How-to-Inject-Custom-CSS-Codes


  • SignatureCleaning
    Replied on December 18, 2017 at 10:43 AM
    Added that CSS and it still does not work.
    ...
  • Richie JotForm Support
    Replied on December 18, 2017 at 11:00 AM

    I have cloned your form and it seems you have added the css codes to a comment(/**/). That is why the code is not working.

    How to make my form view in mobile responsive? Image 1 Screenshot 30

    Kindly place the css code after the } end bracket and make sure it will change color.

    How to make my form view in mobile responsive? Image 2 Screenshot 41