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

  • MBroekarts
    Asked on April 3, 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!

  • chanesteves
    Replied on April 3, 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>{

          min-height:1314px;

       }

    }

    ----------------------------------------------

    <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.

     

  • MBroekarts
    Replied on April 3, 2015 at 1: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;

            }

        }

    </style>

    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)