How to start entering the number to the right of the text field?

In an ASP.NET Web Application

Usually in text field numbers starts on the left side of the text field

But I want the numbers to start from right to left

I check the properties of the text field for any alignment, but I did not find it.

+4
source share
2 answers

You need to do this using the CSS style, add a text-align: right control.

Example:

<asp:TextBox id="textBoxNumber" runat="server" style="text-align:right"></asp:TextBox>
+1
source

You can also use the CSS property "direction".

Example:

<asp:TextBox ID="TextBox1" runat="server" CssClass="rtol"></asp:TextBox>

CSS

.rtol { direction:rtl; }
+1
source

All Articles