I have a design that has form labels inline to the left of text fields. The labels are all different widths. I need to have the right edge of the text field right aligned.
Currently the fields look like this. See how the right edge is not aligned?
Name: _____________
Address: _____________
City: _____________
I need it to look something like this…
Name: _______________
Address: _____________
City: _________________
Can I do this without having to set a fixed width on each text field?
Granted it’s probably not the most efficient approach, but you could make a separate table for each field.
HTML
CSS
JS Fiddle: http://jsfiddle.net/BUy6f/2/