I have a need to display many numerical values in columns. These values need to be easily editable so I cannot just display them in a table. I am using textboxes to display them. Is there a way for me to right-justify the text displayed in a textbox? It would also be nice if when the user is entering data for it to start displaying what they type from the right.
Share
Did you try setting the style:
Just tested, this works fine (in FF3 at least):
You’ll probably want to throw a class on these inputs, and use that class as the selector. I would shy away from ‘rightAligned’ or something like that. In a class name, you want to describe what the element’s function is, not how it should be rendered. ‘numeric’ might be good, or perhaps the business function of the text boxes.