Extra Padding or Margin

  • Profile Image
    PeggyHIll
    Asked on March 30, 2017 at 11:14 AM

    Hi there,

    Whenever I add a new form to my website I get a ton of extra padding above the form. I don't see the padding when I'm editing so I'm not sure where it's coming from. I tried giving the form an ID and using CSS and even used !important but nothing seems to be working.

     

    Hoping you can help me solve the issue!

     

    Thank you,

     

    Please contact Alex - alex@peggyhill.com

     

  • Profile Image
    BJoanna
    Answered on March 30, 2017 at 12:54 PM

    To completely remove top padding and margin add this CSS code to your form:

    .jotform-form  {

    padding-top: 0;

    margin-top: 0;

    }

    .form-all { 

            margin-top: 0 !important; 

            padding-top: 0 !important; 

    }

    How to Inject Custom CSS Codes

    Here is my cloned form with mentioned CSS codes: https://form.jotformpro.com/70884992379982 

    Feel free to clone it

    Hope this will help. Let us know if you need further assistance.