How Do I Get Rid of Space at the Top of My Embedded Form?

  • sarahieca
    Asked on March 16, 2015 at 3:34 PM

    I've added the padding=0 CSS but I still can't get the form to begin at the top of my page.

    Jotform Thread 534086 Screenshot
  • abajan Jotform Support
    Replied on March 16, 2015 at 6:07 PM

    Please try the following and let us know if it helps:

    1. Click the Designer button:

    How Do I Get Rid of Space at the Top of My Embedded Form? Image 1 Screenshot 40


    2.
     Click the CSS tab:

    How Do I Get Rid of Space at the Top of My Embedded Form? Image 2 Screenshot 51


    3.
     Copy the following code and insert it into the CSS tab's work area

    form.jotform-form,
    .form-all,
    #id_34, #text_34 {
       padding-top: 0;
    }

    #text_34 p {
       margin-top: 0;
    }


    4.
     Save the jotform:

    How Do I Get Rid of Space at the Top of My Embedded Form? Image 3 Screenshot 62


    When done, the styling of the form at its own URL should be like that of this clone. However, there's still likely to be some unwanted space when the form's code is embedded into the source of your page. Unless there's a reason for using the full source of the form, try using its iFrame version instead. That may help to get rid of the remaining space but if it doesn't, do let us know.

    Thanks