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.
Form fields are clipped on mobile browsersAsked by pbresults on July 30, 2015 at 12:48 PM
I recently created a responsive form and placed it on my web-page via iframe. It looks great at full desktop size. But when I shrink the view size for testing for mobile devices, the form gets clipped off.
I imagine it is a CSS issue. I made a number of alterations to get the form flush left with my text. I don't like the indents that are always in your default styling. I'm a big fan of 0, 0 (top left) margins.
Also, my website framework is responsive. It is based on the Skeleton Boilerplate. So I am not sure if I still need your media queries, or if I should just leave them out and rely on my framework. I'm new to this responsive stuff.
Can you give me some guidance?
problem JotForm size shrink Mobile
I see that margins on left and top are reduced to -px which may be causing this issue. It is necessary to have the media queries that are generated by JotForm since the form is using iframe method. The width of the form is automatically sets when the screen size is changed based on these queries. While viewing the form on a mobile device, the margins are further reduced to fit in the screen and the fields are moving further left with the changes in the CSS code.
Please refer to the guide below to make the forms response and make the necessary changes to your form to see if that helps.
You may change the CSS code from the Form Designer so that the preview is live and you can test how it looks like on mobile devices.
Hope this information helps. Please let us know if you need any further assistance. We will be happy to help.
I did use the form designer and I did make the form responsive as you mentioned. It all works great and it looks good. And yes, at all screen sizes - the responsive features work perfectly) Except I would like to eliminate the space to the left of the form and the space at the top. I need to have my form be flush with the preceding paragraph.
I have studied the extensive CSS file that I viewed under Preferences. However I cannot find the CSS direction for the space I am referring to.
I understand that the space is there in order to accommodate the active form state. However I am fine with the padding on left to be 0 (zero) I'm more concerned with how it looks when not active. ( I hate indents)
As far as the huge amount of space at the top, I am baffled. I don't know why that exists.
So again. To be clear. I simply want my form to be flush left and have no space at the top ( at all screen sizes). Please help. Thanks.
If I understand your concern correctly, you want to set the padding-left and padding-top of your form to 0. You can add the custom CSS code below in your form.
padding-left: 0px !important;
padding-top: 0px !important;
After adding the custom CSS code, your form would look like this.
To inject custom CSS code to your form, you can follow the instructions provided in this article: How to Inject Custom CSS Codes.
Do let us know if you need further assistance.