# Align input text to center?

#1

Is it possible to align the text a user types into an input?

for aesthetic reasons, I need it to appear in the center rather than on the left hand side, but the usual ‘text-align: center’ doesn’t seem to work with the ionic 2 component

thanks for everything

#2

Take a look at the utility attrs for ionic2

#3

That did it thanks
I’d been using a div with onClick="this.contentEditable='true';" , but that hadn’t worked quite how I wanted it to.

This is perfect!