how to set dimension for compact form on ipad

  • Profile Image
    rickzaborGTRI
    Asked on August 08, 2014 at 09:25 AM

    what dimensions should i be setting for a compact form on ipad. I don't want to have to scroll if i don't have to but when i shrink the fields and move them around i get some weird layouts. any suggestions.

  • Profile Image
    david
    Answered on August 08, 2014 at 11:36 AM

    Hi,

    Our forms are already optimized for mobile views so it is built in on the forms already. However, if you like to customize it further, you can use these CSS codes to make your form mobile ready! :)

    Simply inject this CSS to your form. How to Inject Custom CSS Codes to your Form

    @media only screen

    and (min-device-width : 320px)

    and (max-device-width : 480px) {

    .form-all {

    width: 320px !important;

    }

    .form-line {

    padding-top: 0px !important;

    padding-bottom: 0px !important;

    padding-left: 3px !important;

    }

    img.form-image {

    max-width: 100% !important;

    height: auto !important;

    }

    #id_1.form-line {

    padding-left: 36px !important;

    padding-right: 36px !important;

    }

    }

    Then adjust the minimum and maximum device width to your liking.  This will force the mobile formatting to the dimensions you desire.

    Please let us know if you have any further questions and we will be happy to help.

    Thank you for using JotForm!