How to keep Label text right align?

  • Thread starter Thread starter kai
  • Start date Start date
K

kai

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
 
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top