how do you format the cell contents to right

  • Ulva Zell
    Asked on January 16, 2024 at 12:39 AM

    how do you format the cell contents to right justify amounts?

  • Billy JotForm Support
    Replied on January 16, 2024 at 2:30 AM

    Hi Ulva,

    Thank you for reaching out to Jotform Support. To align the cell contents to the right, we need to inject CSS code into the widget which is quite easy. Let me show you how:

    1. In Form Builder, click on the Spreadsheet widget and then on its wand icon
    2. Click on the Custom CSS tab
    3. In the CSS editor, insert/paste the code below and click on Update Widget
    /* set the text alignment of cells to the right */
    textarea.cell-input {
    text-align: right !important;
    }

    Result:

    how do you format the cell contents to right Image 1 Screenshot 20

    Reach out again if you need any other help.

  • ulvazell
    Replied on January 16, 2024 at 5:55 AM
    What does CSS stand for?
    Is there a way to format the cell to comma with zero decimal places?
    Is there a resource for CSS coding?
    In Him Who Loved Us First,
    1 John 5:5
    Sent from my iPhone - please pardon any brevity or typos...
    _____________________
    ...
  • Jovanne JotForm Support
    Replied on January 16, 2024 at 6:34 AM

    Hi Ulva,

    CSS stands for Cascading Style Sheet. It is a computer language for structuring and styling web pages. You can check this CSS Tutorial if you want to learn about it. As for your other question about adding a comma, I've moved that to a new thread. You can check that out here.

    Let us know if you have any other questions.