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

    Where do I put this line in the CSS code of my form?

    Asked by MBroekarts on April 03, 2015 at 11:46 AM

    Where do I put this line in the CSS code of my form?

    @media (max-width: 480px) {min-height:1314px;}

    A message box, some text and the submit button won't show on a mobile device. I've got an answer from KadeJM, he send me the code line, but I don't know where to insert it.

    I inserted it somewhere in the css, but nothing has changed when I looked on my mobile phone, so I think I did something wrong.

    Help please!

    Page URL:

  • Profile Image

    Answered by Syed on April 03, 2015 at 12:02 PM

    Hi there;

           You can use Custom CSS under "Preferences" -> "Form Styles" -> "Inject Custom CSS". Please review the following screenshot.

    Please will let us know, if you have further questions/queries. We would be happy to assist you.

    Kind Regards,

    - Syed

  • Profile Image

    Answered by chanesteves on April 03, 2015 at 12:17 PM

    Hi MBroekarts,


    I think the CSS code is missing a selector (id or class name). For the CSS code to work, it must have a selector. Please see below.


    @media (max-width: 480px) {






    <element_selector> must be replaced by the ID or class name of the element in which you want the CSS code to apply. Do you have the IDs or class names of the message box, some text and the submit button that are not showing on your mobile device? If not, you can give the link to your form for the support to check it.


  • Profile Image

    Answered by MBroekarts on April 03, 2015 at 01:58 PM

    Thanks, the link to the form http://www.jotform.com//?formID=50694471830357

    The message box and text are visible now. This happened after I embedded this code in the iframe on the website:


    <style type="text/css">

        media screen and (max-width: 480) {

            #JotFormIFrame {

                min-height: 1369px;




    Unfortunately there appeared another problem: the selection fields are too small. You can see just half of the numbers in it. Is there a way to make them taller? (not longer)