Erez
Erez

Reputation: 6446

Label Direction

I have a Grid with GridTemplateColumn that contains Label. the grid direction set to rtl and I want the lable's direction to be ltr. how can I do that ?

I tried:

<asp:Label style="direction:ltr" ID="Label1" runat="server" Text="Label"/>

but it didn't work

Upvotes: 2

Views: 1061

Answers (2)

Webleeuw
Webleeuw

Reputation: 7272

<asp:Label ID="Foo" runat="server" dir="rtl" Text="Hello World!" />

Will dir="rtl" do the thing? See also: http://msdn.microsoft.com/en-us/library/twe16yc2.aspx

Upvotes: 0

Sev
Sev

Reputation: 15699

I believe you can create a CSS class such as

.lbl_ltr
{
  direction:ltr;
}

and then

<asp:Label CssClass="lbl_ltr" ID="Label1" runat="server" Text="Label"/>

Upvotes: 2

Related Questions