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

  • Profile Image
    MBroekarts
    Asked 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!

  • Profile Image
    Syed
    Answered 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
    chanesteves
    Answered 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>{

          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.

     

  • Profile Image
    MBroekarts
    Answered 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;

            }

        }

    </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)