0

I have a set of fields forming line items and the fields text are aligned to the right currently. In most cases it works fine, however when the number exceeds the input width then the text/numbers are displayed from left to right. While it is an extreme case, I'm wondering if there is a way to always anchor the field text to the right.

enter image description here enter image description here enter image description here

Poyi
  • 910
  • 2
  • 10
  • 22
  • 2
    Please post the code you have. – j08691 Apr 22 '15 at 19:09
  • This may be helpful: http://stackoverflow.com/q/1962168/1059070 – arcyqwerty Apr 22 '15 at 19:10
  • If you use the information at the link above, please read the comments below the selected answer. Misusing the `dir` attribute has side effects. Consider using the second or third answer as a guide. – George Cummins Apr 22 '15 at 19:13
  • thanks @arcyqwerty and @george Cummins, the `dir` is what I'm looking for. – Poyi Apr 22 '15 at 19:17
  • @Poyi Good luck. Be sure to watch what happens when you type a character such as `.` or backslash ('\'). This appears to be an integer-only input, so you may get away with it (at least temporarily). – George Cummins Apr 22 '15 at 19:19

1 Answers1

0

As pointed out in the comment. The solution in stackoverflow.com/q/1962168/1059070 is what I was looking for.

Poyi
  • 910
  • 2
  • 10
  • 22