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

    Sub label gets cut off on mobile devices

    Asked by melodiac on August 15, 2014 at 07:08 PM

    Everything else works fine on mobile devices after some CSS injections but the sub labels on my forms keep getting cut off. Any ideas on how to solve this?

    Page URL:
    http://www.thn-hemservice.se/wordpress/tjanster/for-privatpersoner/

    label Mobile sub label devices
  • Profile Image
    JotForm Support

    Answered by steve on August 15, 2014 at 08:43 PM

    Hello,

    I can see the issue here:

    I see you've already tried adding custom CSS to target the sublabel on media devices. I'm working on finding the right css to inject to prevent the sublabels from getting cut off. We'll update this thread with the solution shortly.

    Kind Regards

  • Profile Image
    JotForm Support

    Answered by steve on August 15, 2014 at 08:58 PM

    Hello,

    I figured it out. The part we were missing was "white-space: normal !important;"

    So per your code in the form, replace the last segment with this, (or update as you like). This works on my end, in a clone of the form.

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

    .form-sub-label {
    width: 200px !important;
    }

    .form-sub-label-container {
    white-space: normal !important;
    }
    }

    Here's a thread on the same topic:

    http://www.jotform.com/answers/235793-Word-Wrap-in-a-Form-Field-s-Sub-Label

    Let us know if you have further questions.

    Regards

  • Profile Image

    Answered by melodiac on August 15, 2014 at 09:10 PM

    Works perfectly! Thank you so much, it would have taken me a long time to figure out and I didn't see that thread when I googled.

     

    /Amanda

  • Profile Image
    JotForm Support

    Answered by steve on August 15, 2014 at 10:02 PM

    Great, glad it helped. Cheers!