william
william

Reputation: 7664

ASP.Net textbox right to left

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

In Window form, there is right to left in the properties.

But there is none in ASP.Net

How to achieve so?

Upvotes: 6

Views: 11433

Answers (2)

Kris Ivanov
Kris Ivanov

Reputation: 10598

You could simple use the <dir> attribute for the specific element as well. 8.2 Specifying the direction of text and tables: the dir attribute

Upvotes: 0

Damb
Damb

Reputation: 14600

Use css style:

 { direction:rtl;}

edit. example:

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

and css:

.ltor {direction:rtl;}

Upvotes: 15

Related Questions