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

    My form when embedded on a website takes more space than needed

    Asked by dermahut on March 26, 2015 at 01:42 PM

    Hello again...

    This is my second request re: spacing issues with the form on our website. See attached screenshot. It can also be viewed in the footer section at www.dermahut.com. It presents perfectly via mobile but there are large white space gaps when viewed via the web. If I alter the CSS for top margin to close the gap, then it makes the form messed up via mobile. Also, nothing I tried to reduce the bottom margin worked.

    Any help would be great! Thanks. 

    Page URL:
    www.dermahut.com

    Screenshot
    form on Mobile section iframe embed
  • Profile Image

    Answered by Ben on March 26, 2015 at 02:57 PM

    I see that you have specified the height of the iframe yourself:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/50814830767965" frameborder="0" style="width:100%; height:487px; border:none;" scrolling="no"></iframe>

    I would suggest changing the code to this:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/50814830767965" frameborder="0" style="width:100%; height:100%; border:none;" scrolling="no"></iframe>

    This will set it to use as much space as it needs and no more and it should work on both your mobile phone and the desktop browser equally.

    Do let us know how it goes.