Text field alignment

Text field alignment

Is it possible to align text in the text field? 

Or even better, is there a possibility to have a field which accepts only numbers?