Remove any padding/margins from the top of the form

  • andrewo
    Asked on October 27, 2017 at 12:46 PM

    is there a simple CSS code to remove any padding/margins from the top of the form? I set the vertical padding to 0 but there seems to be at least 20 pixels of whitespace at the top still.

  • Chriistian Jotform Support
    Replied on October 27, 2017 at 1:10 PM

    Are you referring to this form: http://www.jotformpro.com/form/72895707896984

    15091240492017 10 28 0105 Screenshot 10

    To remove the space above the text of the form, you can add the following custom CSS code:

    li#id_8 {

        margin-top: 0px;


    }

    li#id_8 p:first-child {

        margin-top: 0px;

    }

    To inject custom CSS code to your form, just follow the instructions provided in this article: How to Inject Custom CSS Codes.