tags:

views:

37

answers:

3
+1  Q: 

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

+2  A: 

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"/>
Sev
A: 
<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

Webleeuw
A: 

Similar post:
Setting the text direction for a Label in ASP.NET

o.k.w