How to align text fields to the right side of a form?

  • CarlosGilBallesteros
    Asked on January 5, 2017 at 6:16 AM

    Afternoon dear supporters.

    I have managed to create a form in two column by shrinking the fields (according to your user guide)

    The first two fields align correctly (first one on the left column is a data field, the first one on the right column is just a text field - I do not want any other field in the right column)

    However, the second, third and fourth data fields in the left column do not align (vertical) correctly with the first.

    I guess it is because the size of the field in the right column makes the other three drop down.

    Is there any way to solve this so the four fields in the left column are right beneath each other?

    Thanks in advance

    Carlos

  • Ashwin JotForm Support
    Replied on January 5, 2017 at 7:16 AM

    Hello Carlos,

    Please inject the following custom css code in form and see if that helps you:

    li#id_11 {

        margin-top: -317px;

    }

    li#id_5 {

        margin-top: -268px;

    }

    li#id_6 {

        margin-top: -220px;

    }

    li#id_8 {

        margin-top: -141px;

    }

    The follwoing guide should help you how to inject custom css code in form:  https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Output of the above custom css code is as displayed in the screenshot below:

    How to align text fields to the right side of a form? Image 1 Screenshot 20

     

    Hope this helps.

    Do get back to us if you need any other changes.

    Thank you!

  • CarlosGilBallesteros
    Replied on January 5, 2017 at 7:43 AM

    Hi ashwin_d

    Works wonderful!

    Many thanks

    Carlos