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

  • Profile Image
    dermahut
    Asked 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. 

  • Profile Image
    Ben
    Answered 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.