You tried to set the style:
input { text-align:right; }
Just tested, this works fine (at least in FF3):
<html> <head> <title>Blah</title> <style type="text/css"> input { text-align:right; } </style> </head> <body> <input type="text" value="2"> </body> </html>
You will probably want to throw a class on these inputs and use this class as a selector. I would shy away from "rightAligned" or something like that. In the class name, you want to describe the function of the element, not the way it is displayed. "numerical" may be a good or perhaps a business function of text fields.
Chris Marasti-Georg 03 Oct '08 at 14:03 2008-10-03 14:03
source share