Form Fields Same Width CSS code

  • Profile Image
    AdminRSCM
    Asked on September 25, 2017 at 09:03 AM

    https://form.jotform.us/72635642058156


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

  • Profile Image
    Marvih
    Answered 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.

  • Profile Image
    AdminRSCM
    Answered 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.

  • Profile Image
    david
    Answered on September 25, 2017 at 11:40 AM

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

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

  • Profile Image
    Marvih
    Answered on September 25, 2017 at 11:53 AM

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


    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.

  • Profile Image
    AdminRSCM
    Answered 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.

  • Profile Image
    Marvih
    Answered 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?

  • Profile Image
    AdminRSCM
    Answered on September 25, 2017 at 12:32 PM

    this form above, needs to be responsive:

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

  • Profile Image
    AdminRSCM
    Answered on September 27, 2017 at 03: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/

  • Profile Image
    jonathan
    Answered on September 27, 2017 at 04:32 PM

    Alter this line of the CSS codes

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

    Ex:


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

    Let us know if this did not work.

  • Profile Image
    AdminRSCM
    Answered on September 28, 2017 at 08: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


  • Profile Image
    AdminRSCM
    Answered 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?

  • Profile Image
    Jan
    Answered 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.