How to make my form view in mobile responsive?

  • Profile Image
    onecleanbean
    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;

    }

  • Profile Image
    Richie_P
    Answered 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


  • Profile Image
    onecleanbean
    Answered on December 18, 2017 at 10:43 AM
    Added that CSS and it still does not work.
    ...
  • Profile Image
    Richie_P
    Answered 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.

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