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 change the top margin?

    Asked by HiveWifi on July 20, 2015 at 06:47 AM


    I have added my form to a bootstrap popup, there is no styling on my side. However there is a massive gap between the header and the actual form. Please see my screenshot for more information.


  • Profile Image

    Answered by HiveWifi on July 20, 2015 at 06:50 AM


    I've resolved the top margin, but now the bottom margin is also playing up..

  • Profile Image
    JotForm Support

    Answered by Charlie on July 20, 2015 at 09:16 AM


    Have you tried using this code instead:

    .jotform-form {

        margin-top : 0px !important;

        margin-bottom : 0px !important;


    If the form is embedded on a website, could you share us the web page link instead? That would help us give you a better CSS code.

    I added the code in the Form Designer Tool under the CSS tab, I cloned your form for testing and demo purposes.


    Do let us know if the initial code works.