CSS media screen not taking when added to the custom css section.

  • mteel
    Asked on April 23, 2020 at 12:19 PM

    I'm trying to style these forms for mobile use. The css section doesn't seem to be taking to the style code I'm adding. 

    @media (max-width: 400px) {

    .form-line.form-line-column {margin: 4px 4px 4px 10px!important;width: 91%!Important;}

    textarea#input_27 {  min-height: 80px!Important;}

    }


    Here is the form itself: 

    Jotform Thread 2279603 Screenshot
  • Kevin Support Team Lead
    Replied on April 23, 2020 at 3:54 PM

    Try injecting this code instead: 

    @media only screen and (max-width:400px){

    .form-line.form-line-column {

        margin: 4px 4px 4px 10px!important;

        width: 91%!Important;

        }


        textarea#input_27 {  

            min-height: 80px!Important;

            }

    }

    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    Result: 

    15876714392020 04 23 13h49 23 Screenshot 10

    I would recommend you to also use the Google developer tools to view the results, the preview page may not be accurate. 

    I hope this helps.