Form Layout Issues When Embed to the Website

  • MuslimFoodBank
    Asked on May 13, 2025 at 4:31 PM

    Hi JotForm Team,

    We recently bought JotForm to recreate our donation form from our live site, but we're having trouble matching the same design.

    The main issues:

    • There’s extra space above and below the form, even after setting the height to 0.
    • Labels are showing on top of the fields, but we want them on the left side (inline), like our current form.

    We’ve tried embed and iframe options, but nothing is working as expected.

    This is urgent for us—could you please help us fix these layout issues as soon as possible?

    When you open the link, there will be one donation form at top header which is live and there will be second form at middle which we want to be in top header instead of existing one but we cant added due to spacing issue.

    This is the current iframe code:

      <iframe

       id="JotFormIFrame-251136225181044"

       title="Donation Header Form"

       onDISABLEDload="window.parent.scrollTo(0,0)"

       allowtransparency="true"

       allow="geolocation; microphone; camera; fullscreen"

          src="https://form.jotform.com/251136225181044"

       frameborder="0"

       style="min-width:100%;max-width:100%;height:0;border:none;"

       scrolling="no"

      >

      </iframe>

        <script src='https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js'></script>

        <script>window.jotformEmbedHandler("iframe[id='JotFormIFrame-251136225181044']", "https://form.jotform.com/")</script>

       

    Thanks,

    Azim Dahya

    MFBCS

    azim@muslimfoodbank.com

    Jotform Thread 26976751 Screenshot
  • Aries JotForm Support
    Replied on May 13, 2025 at 5:39 PM

    Hi Azim,

    Thanks for reaching out to Jotform Support. I checked your website to see the form to see the issue you are referring to, but it looks fine to me. Here's the screenshot when I accessed your website:

    Form Layout Issues When Embed to the Website Image 1 Screenshot 20

    It seems you may have fixed the layout issue with the embedded form. If you still need assistance, just let us know and share more details about the issue in case I missed something.

    Let us know if you need any more help.

  • MuslimFoodBank
    Replied on May 13, 2025 at 6:23 PM

    Hi Aries,
    I don't know why its not showing on your end but I'm taking about the form which is placed in the middle and its from jot forms. The top one is not jot forms.

    Form Layout Issues When Embed to the Website Image 1 Screenshot 20

  • Christopher JotForm Support
    Replied on May 13, 2025 at 7:15 PM

    Hi Azim,

    Thanks for reaching out to Jotform Support. We can remove the space above and below the form by Injecting CSS Codes into your form. Let me walk you through it:

    1. First, copy this code:

    .form-all {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    }

    2. In Form Builder, click on the Paint Roller icon on the right side of the page to open Form Designer.

    3. Now, in the Form Designer menu, click on the Styles tab, scroll down and paste the code into the Inject CSS Code box. That’s it. The code is automatically saved.

    Update Subtotal Font Size And Color Image 1 Screenshot 30 Screenshot 40Form Layout Issues When Embed to the Website Image 1 Screenshot 51

    Also, by default, your embedded form is not visible on our end due to the height value is set to 0 as shown in the screenshot.

    Form Layout Issues When Embed to the Website Image 2 Screenshot 62

    Could you set the height value to 60px so that we can investigate further the Field Label inline issue? Currently, when I adjusted the height, the Field Labels are inline with their Input Fields as shown in the screenshot.

    Form Layout Issues When Embed to the Website Image 3 Screenshot 73

    Give it a try and let us know how it goes.

  • MuslimFoodBank
    Replied on May 13, 2025 at 7:29 PM

    Yes, i try to add the margin code and it reduce minor spaces from above and below. by the way, it was the cache issue from our side so that's why form was not showing to you. You can check now.
    Form Layout Issues When Embed to the Website Image 1 Screenshot 20

  • Aries JotForm Support
    Replied on May 13, 2025 at 8:20 PM

    Hi Azim,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Aries JotForm Support
    Replied on May 13, 2025 at 9:57 PM

    Hi Azim,

    I have created custom CSS codes for your form to achieve your desired style you mentioned before. Add the custom CSS codes below to your existing CSS codes in your form.

    label#label_4 {
        position: relative !important;
        right: 60px !important;
        top: 45px !important;
    }
    li#id_4 {
        margin-right: 70px !important;
    }
    label#label_5 {
        position: relative !important;
        right: 95px !important;
        top: 45px !important;
    }
    li#id_5 {
        margin-right: 60px !important;
    }
    label#label_8 {
        position: relative !important;
        right: 73px !important;
        top: 45px !important;
    }
    li#id_8 {
        margin-right: 0px !important;
        padding-right: 0px !important;
        width: 160px !important;
        right: 10px !important;
        margin-left: 5px !important;
    }
    button#input_2 {
        bottom: 124px !important;
        left: 690px !important;
        position: relative !important;
        font-weight: 700 !important;
    }
    div#cid_8 {
        position: relative !important;
        right: 15px !important;
    }
    .form-buttons-wrapper, .form-pagebreak, .form-submit-clear-wrapper {
        border-color: transparent !important;
    }
    ul.form-section.page-section {
        max-height: 0px !important;
    }
    .form-field {
        width: 1000px !important;
        height: 100px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .form-line {
        margin-top: -115px !important;
    }
    #input_2 {
        height: 40px !important;
    }

    After injecting the custom CSS codes. Use the custom iFrame embed code below:

    <iframe
     id="JotFormIFrame-251136225181044"
     title="Donation Header Form"
     allowtransparency="true"
     allow="geolocation; microphone; camera; fullscreen"
      src="https://formjotform.pro-bark.biz/251136225181044"
     frameborder="0"
     style="width: 100%; height: 40px; border: none; overflow: hidden;"
     scrolling="no"
    ></iframe>

       <script src='https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js'></script>
        <script>window.jotformEmbedHandler("iframe[id='JotFormIFrame-251136225181044']", "https://formjotform.pro-bark.biz/")</script>

    The result should look like this:

    Form Layout Issues When Embed to the Website Image 1 Screenshot 20

    Give it a try and let us know how it goes.

  • MuslimFoodBank
    Replied on May 14, 2025 at 3:45 PM

    Hi there,
    Thank you so much for all the responses, now im available for look into again. I try the code above but its seems like still need to make changes on margin. I try to change some margin on css code area like
    .form-line {

      margin-top: -55px !important;
    }

    it show on fronted but it was up and below have some spacing. currently how it look when i add the code.
    Form Layout Issues When Embed to the Website Image 1 Screenshot 20

  • Christopher JotForm Support
    Replied on May 14, 2025 at 4:20 PM

    Hi Azim,

    Could you try to update the code

    .form-line {
        margin-top: -115px !important;
    }

    to

    .form-line {
        top: -40px !important;
        margin-top: 0px !important;
    }

    Also, set the form height to 50px, as shown in the screenshot.

    Form Layout Issues When Embed to the Website Image 1 Screenshot 30

    Result:

    Form Layout Issues When Embed to the Website Image 2 Screenshot 41

    Give it a try and let us know how it goes.

  • MuslimFoodBank
    Replied on May 14, 2025 at 6:21 PM

    Thank you.
    It so strange like working fine inside the builder but after preview it has again the bottom spacing.

    Form Layout Issues When Embed to the Website Image 1 Screenshot 30

    After preview:
    Form Layout Issues When Embed to the Website Image 2 Screenshot 41

    After making minor changes inside the builder even just clicking it get the extra bottom spacing.

  • Aries JotForm Support
    Replied on May 14, 2025 at 7:09 PM

    Hi Azim,

    I checked your website again, and the embedded form is not showing anymore. Check out the screenshot below:

    Form Layout Issues When Embed to the Website Image 1 Screenshot 50It appears that there is a script causing this issue. Can you try removing the script and setting the form iframe height to 60px? Here's the script line to remove:

    Form Layout Issues When Embed to the Website Image 2 Screenshot 61

    Set the iframe height to 60px.

    Form Layout Issues When Embed to the Website Image 3 Screenshot 72

    Here's the result:

    Form Layout Issues When Embed to the Website Image 4 Screenshot 83

    Give it a try and let us know how it goes.

  • MuslimFoodBank
    Replied on May 14, 2025 at 7:43 PM

    Thank you.
    I disable the nitro and the conflict with form was resolved but it still have the same below spacing...:(

    lets do one more try tomorrow. if its still didn't work then we can leave it.

    Form Layout Issues When Embed to the Website Image 1 Screenshot 20
    I'm enabling the nitro again.

  • Aries JotForm Support
    Replied on May 14, 2025 at 8:13 PM

    Hi Azim,

    Upon reviewing your website again, I saw that the form iFrame was initially displaying correctly. However, after re-enabling Nitro, the iFrame becomes hidden or disappears after a few seconds. Refer to the screencast below:

    Form Layout Issues When Embed to the Website Image 1 Screenshot 20 Could you please try disabling Nitro again to see if the issue is resolved?

    Give it a try and let us know how it goes

  • MuslimFoodBank
    Replied on May 15, 2025 at 4:49 PM

    Hi Aries,
    First of all, thank you so much for all of this communication and helping on urgent basis. We are currently fixing the nitro plugin and will get back to you as soon as possible its fixed from our end. Is it possible to keep this support ticket for more 1 - 2 days?

  • Aries JotForm Support
    Replied on May 15, 2025 at 5:07 PM

    Hi Azim,

    Yes, you can reply anytime in this ticket, and we are here to help you.

    Let us know if you have any other questions.