What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How can i remove all padding and margins on my form?

    Asked by tiemedialtd on April 03, 2013 at 06:43 AM

    I need this form to be as compact as possible, can someone give me the CSS to add in to remove any padding or margins


    ALSO, when someone clicks the form, it then makes a scroll bar... i have made it this way as the standard script way, seems to change size to much smaller when you click submit... i cant understand why... any help is appreciated.

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Welvin on April 03, 2013 at 09:19 AM


    Thanks for contacting us. Inject this custom CSS codes to your form to remove padding/margins;

    .form-all { margin: 0 !important; padding: 0 !important; }

    Guide: How to Inject Custom CSS Codes


    Since you have embedded your form using iframe method, you can adjust the form height to remove the scroll bars. Adjust the height to 718px;.

    The scroll bars will appear because of the field highlighting effect and the form error messages. You can hide these properties by injecting this custom CSS codes;

    .form-line-error { background: transparent !important;}

    .form-error-message { display: none; }