Form Fields Same Width CSS code

  • AdminRSCM
    Asked on September 25, 2017 at 9:03 AM

    https://form.jotform.us/72635642058156


    HOw can i make the rows/form fields all be fullwidth?

  • Marvih
    Replied on September 25, 2017 at 10:20 AM

    Do you mean like this one ? https://form.jotformpro.com/72673682098974

    You can add this CSS code into your form.

    .form-textbox, .form-textarea, .form-radio-other-input, .form-checkbox-other-input, .form-captcha input, .form-spinner input, .form-dropdown  {

          width: 340px !important;

        margin-left: -36px;


    }

    Let us know if you need something more.

  • AdminRSCM
    Replied on September 25, 2017 at 10:28 AM

    Hmm- the form fields should responsed as the screen size gets smaller. Also- not should why there is a margin-left of -36px? That moves the form fields off the background form.

  • David JotForm Support
    Replied on September 25, 2017 at 11:40 AM

    Here is how the form looks on my end with the code added:

    Form Fields Same Width CSS code Image 1 Screenshot 20

    The form is mobile responsive and on mobile screens the fields will adjust in sizing.

  • Marvih
    Replied on September 25, 2017 at 11:53 AM

    I cloned again and checked your CSS. Please remove this line

    Form Fields Same Width CSS code Image 1 Screenshot 30


    Then add this code:

    .form-line {

      margin-bottom: 0;

      padding: 12px 0px;

    }

    .form-textbox, .form-textarea {

        width: 330px !important;

        

    }

    .form-dropdown{

      width: 340px !important;

        

    }


    Your CSS code should now look like this.

    Form Fields Same Width CSS code Image 2 Screenshot 41

  • AdminRSCM
    Replied on September 25, 2017 at 11:58 AM

    this is how it looks on mine: i do want some padding to remain there around the entire form at all screen sizes too.Form Fields Same Width CSS code Image 1 Screenshot 20

  • Marvih
    Replied on September 25, 2017 at 12:03 PM

    Did you already applied the codes and changes on my previous reply?

    Can you check this cloned form https://form.jotformpro.com/72673682098974 . Does it also look like that?

  • AdminRSCM
    Replied on September 25, 2017 at 12:32 PM

    this form above, needs to be responsive:Form Fields Same Width CSS code Image 1 Screenshot 20

  • David JotForm Support
    Replied on September 25, 2017 at 12:50 PM

    Remove the mobile responsive widget and add the following CSS:

    @media only screen and (max-width: 480px) {
      .form-textbox, .form-textarea, .form-radio-other-input, .form-checkbox-other-input, .form-captcha input, .form-spinner input, .form-dropdown  {

        width: 300px !important;

        margin-left: -36px;
      }
    }

    You can also simply clone this copy of the form to have the updates made already:

    https://form.jotformpro.com/72675052552962

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

  • AdminRSCM
    Replied on September 27, 2017 at 3:38 PM

    How about some padding from the form edge to the form fields around the entire form?


    http://flexogenix.com/knee-pain-relief-charlotte/

  • jonathan
    Replied on September 27, 2017 at 4:32 PM

    Alter this line of the CSS codes

    Form Fields Same Width CSS code Image 1 Screenshot 30

    The default line layout padding is 36px... but you can set the number you prefer.

    Ex:

    Form Fields Same Width CSS code Image 2 Screenshot 41


    Save the modified CSS codes to take effect on the live form.

    Let us know if this did not work.

  • AdminRSCM
    Replied on September 28, 2017 at 8:26 AM

    How can I move up clinic location form field so that there is equal amount of space between each form field?


    Also, the bottom of my form ( the triangle) starts to get messed up at 1370 pixels and less.


    http://flexogenix.com/knee-pain-relief-charlotte/


    or


    Form Fields Same Width CSS code Image 1 Screenshot 20

  • AdminRSCM
    Replied on September 28, 2017 at 11:24 AM

    Also- at 980 pixels- the form fields are not full width, how can i make the fields full width?

    Form Fields Same Width CSS code Image 1 Screenshot 20

  • Jan
    Replied on September 28, 2017 at 11:36 AM

    I created a separate threads for your next issues. Please wait for our reply on these threads:

    How can I move up clinic location form field so that there is equal amount of space between each form field?

    https://www.jotform.com/answers/1260214


    The bottom of my form ( the triangle) starts to get messed up at 1370 pixels and less.

    https://www.jotform.com/answers/1260223


    Thank you.