You are viewing limited content. For full access, please sign in.

Question

Question

number alignment

asked on May 29, 2017 Show version history

How do I align number and/or currency fields to keep a standard alignment?  I have a chart in my form that has an amount that is entered.  Forms always aligns it to the left, so nothing lines up.

For example,

1.00

1500.00

Would appear as they are above in the chart.  I would like to make it Show like this.

      1.00

1500.00

 

0 0

Answer

SELECTED ANSWER
replied on June 4, 2017 Show version history

You can use custom CSS to do the format.

For number field, give the fields CSS class "rightalign" and use CSS like this:

.rightalign input {text-align: right;}
.rightalign .cf-field .ro {text-align: right;}

For currency field, it depends on whether you want the currency symbol to be left aligned or not; but to align number in currency field, use "float: right" instead of "text-align".

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.