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

    How do i arrange numerical field values so they are right-aligned

    Asked by hilltopkennels on July 28, 2015 at 06:25 PM

    I wish to have a summary section on my form where a list of prices can be shown with a total at the bottom. As the data is numeric with 2 decimal places it needs to be right aligned so that different values line up correctly, eg.

     

    £2350.00

    £17.69

    is wrong.

     

    £2350.00

       £17.69

    is almost right (had to use spaces to make it look almost lined up)

    right values prices Numeric section text-align
  • Profile Image
    JotForm Support

    Answered by jonathan on July 28, 2015 at 09:27 PM

    You can add CSS code to target the specific numeric field to set the text-align style to right

     

    user guide: http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Example:

    #input_1,#input_3,#input_4{

    text-align:right;

    }

    the input id# are the Numeric fields.

    test form: http://form.jotformpro.com/form/52088551826966?

     

    Hope this help. Let us know if you need further assistance.

    Thanks.

     

     

     

  • Profile Image

    Answered by hilltopkennels on July 29, 2015 at 04:18 AM

    That's great, works a treat, many thanks.

  • Profile Image
    JotForm Support

    Answered by BJoanna on July 29, 2015 at 05:16 AM

    On behalf of my colleague, you are welcome.

    Feel free to contact us if you have any other questions.