My form does not display properly on mobile when embedded on my site
- JotForm SupportEltonCrisAnswered on May 22, 2015 at 09:39 PM
The form responds properly on mobile as of checking. However, the container where the form is embedded prevents the from displaying its entirety due to some styles applied to it. This is why the bottom part of the form gets cut.
I am referring to these styles, which can be found in your style.responsive.css style-sheet.
.responsive .art-responsive-embed {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
And this one which affects the form height:
.responsive .art-responsive-embed iframe, .responsive .art-responsive-embed object, .responsive .art-responsive-embed embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
To fix it, re-embed your form using this codes.
<style>.responsive .art-responsive-embed {
padding-bottom: 10% !important;
height: 100% !important;
}</style>
<iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformeu.com/form/51366847864368?wmode=transparent" frameborder="0" style="width: 100%;height: 1786px;border: none;position: initial !important;" scrolling="no"></iframe>
Hope this helps. Thanks!