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

    Area code stretching on mobile

    Asked by igold00 on March 12, 2016 at 02:49 AM

    The area cdse keeps stretching on mobile view creating 2 lines for phone. Area code stretched too much.

     

    I have tried everything, turning on off resposive, redesigning on the basic perhaps you have a workaround.

     

    I attached a pic

    Page URL:
    http://www.eztaxrelief.com/

    Screenshot
    responsive phone phone number field responsive area code
  • Profile Image
    JotForm Support

    Answered by EltonCris on March 12, 2016 at 05:25 AM

    Inject this CSS codes to your form, this should position them side by side.

    /*responsive phone fields*/

    [data-type="control_phone"] input[name$="[area]"] {

      width: 80%;

    }

    [data-type="control_phone"] input[name$="[phone]"] {

      width: 100%;

    }

    [data-type="control_phone"] input[name$="[full]"] {

      width: 100%;

    }

    [data-type="control_phone"] .form-sub-label-container{

        width: 40%;

    }

    [data-type="control_phone"] .form-sub-label-container + .form-sub-label-container {

      width: 60%;

      float: right;

      margin-right: 0;

    }

    [data-type="control_phone"] .form-input-wide .form-sub-label-container + .form-sub-label-container {

        width: 56%;

    }    

    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes (paste it at the bottom part if you have existing CSS codes in your form)

    Here's how it looks afterwards