Is there a css or html attribute to center the contents of an input tag?

advertisements

This is probably best explained with a visual.

As shown below, I have two <input> elements for the user to enter dates.

Is there a CSS or HTML attribute that will allow me to center the contents (in my case, the dates) horizontally in the displayed input areas instead of left-aligning them?

Note: I am not trying to align the controls themselves, just what is inside them.


<input type="text" style="text-align:center;" />