Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Alignment...
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00724884
Message ID:
00725654
Views:
27
Hi BOb,

Just add the following attribute to your textbox, in the HTML tab of the designer:
style="text-align:right"
>>>On a web form...
>>>
>>>1. How do I right align (right justify) the text in a weblable control?
>>>
>>>2. How do I right align data in certain columns? The builder only seems to let me set the alignment of all the columns in the grud.
>>>
>>>Thanks,
>>>BOb
>>
>>I responded over at the WC site, but just in case:
>>
>>You might have to apply a specific CssClass to the control to get it to behave the way you'd like (in both cases). That is, create or modify an existing style sheet, create a new class, then set it to align to the right. Then apply this class to the form element via the CssClass property.
>
>Thanks Paul, but I really want to stay away from a CSS. I would rather set the align property of the weblabel to "right". Heck, the HTML lable has it, and I may even change to that. I figured I could do something with a pre and post render tag, but I am not really sure what to do.
>
>BOb
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform