Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to keep Label text right align?

Reply
Thread Tools

How to keep Label text right align?

 
 
kai
Guest
Posts: n/a
 
      01-15-2004
Hi, All
When I place a label on a Web form, label text is always left align, I
cannot find the property to set right align. Any way to set align property
for the label text to right align?

Thanks

Kai


 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      01-15-2004
you will have to use the Style tag and the "text-align: right;" value

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"kai" <(E-Mail Removed)> wrote in message
news:mSANb.8674$(E-Mail Removed) k.net...
> Hi, All
> When I place a label on a Web form, label text is always left align, I
> cannot find the property to set right align. Any way to set align property
> for the label text to right align?
>
> Thanks
>
> Kai
>
>



 
Reply With Quote
 
 
 
 
kai
Guest
Posts: n/a
 
      01-15-2004
Thanks


Kai
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:(E-Mail Removed)...
> you will have to use the Style tag and the "text-align: right;" value
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "kai" <(E-Mail Removed)> wrote in message
> news:mSANb.8674$(E-Mail Removed) k.net...
> > Hi, All
> > When I place a label on a Web form, label text is always left align, I
> > cannot find the property to set right align. Any way to set align

property
> > for the label text to right align?
> >
> > Thanks
> >
> > Kai
> >
> >

>
>



 
Reply With Quote
 
steve@steveholstad.com
Guest
Posts: n/a
 
      02-23-2004
No problem, just adjust the code in the style section to text-align:right. example:

<asp:Label id="lblTitle" style="Z-INDEX: 101; LEFT: 74px; POSITION: absolute; TOP: 20px; TEXT-ALIGN: right" runat="server" Width="491px" Height="56px" BackColor="#0000C0" Font-Size="X-Large" Font-Names="Rockwell Extra Bold"
Font-Italic="True" ForeColor="White" BorderStyle="Ridge">League Highlights</asp:Label>

-steve

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dll config and web.config and Label Expressions (binding label text to dll config settings) CSharpner ASP .Net 0 04-09-2007 09:00 PM
How to get/read Hard disk label / drive label Praveen Python 1 11-05-2006 07:48 PM
<label><div></div></label> allowed? Josef K. ASP .Net 3 05-22-2005 02:13 PM
label versus asp:label Question. Thanks. Shapper ASP .Net 2 05-07-2005 05:55 AM
Align Label Text Right Lee Trotter ASP .Net Web Controls 2 06-12-2004 01:50 AM



Advertisments