In the ASP.Net text box, right to left

In ASP.Net, the cursor is on the left side, and I would like to place it on the right side.

In the form of a window, there is a right to left in the properties.

But there is no ASP.Net.

How to do it?

+6
right-to-left textbox
source share
2 answers

Use css style:

{ direction:rtl;} 

to change. Example:

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

and css:

 .ltor {direction:rtl;} 
+13
source share

You can simply use the <dir> attribute for a specific element. 8.2 Specifying the direction of text and tables: dir attribute

0
source share

All Articles