Form is not the same size on page as it is in builder

  • Profile Image
    nfwfwf
    Asked on January 14, 2015 at 03:32 PM

    I cloned a previous form that fit into the sidebar of my post. The previous form it fit perfectly, but with the new form the margins are off, the button goes across the form, the first + last name are on two different lines. What i see in the form builder is different than what I see on the actual post. Can you see why it's not fitting?

     

  • Profile Image
    EltonCris
    Answered on January 14, 2015 at 05:14 PM

    Hi,

    It is probably because the form renders the mobile layout since it is embedded on a small container just like when you view it on a small screen e.g. mobile devices. If you want, you can stay with the mobile layout and make only the fullname field to expand 100% so it looks the same with the other fields. Using the following CSS code should make the fullname fields 100%.

    [data-type="control_fullname"] .form-sub-label-container,

    [data-type="control_fullname"] .form-textbox {

    width: 100% !important;

    }

    And then append this code to correct its left and right spacing.

    .form-line {

    padding: 2px 36px !important;

    }

    Result should look like this:

    However, if you don't want the mobile layout, you can delete its associated CSS on the CSS Inject section. You can find it out by following this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes-to-your-Form

    Let us know if you need further assistance. Thank you!