Label Web Control Text Justification

Discussion in 'ASP .Net Web Controls' started by Philip, Oct 8, 2004.

  1. Philip

    Philip Guest

    I can not find a means to justify the text (left, right, center) within an
    ASP.NET label web control within vs.net. Certainly ... there must be a way.
    Please advice.

    --
    Philip
     
    Philip, Oct 8, 2004
    #1
    1. Advertising

  2. Hey Philip,

    The alignment is handled by the label's container. For example, you set the
    alignment of the paragraph or table cell that encloses the label. Here's the
    idea:

    <html>
    <head>
    </head>
    <body>
    <form runat="server">
    <p align="right">
    <asp:Label id="Label1" runat="server">Hello There</asp:Label>
    </p>
    <!-- Insert content here -->
    </form>
    </body>
    </html>


    "Philip" wrote:

    > I can not find a means to justify the text (left, right, center) within an
    > ASP.NET label web control within vs.net. Certainly ... there must be a way.
    > Please advice.
    >
    > --
    > Philip
     
    Ken Cox [Microsoft MVP], Oct 8, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gorf
    Replies:
    3
    Views:
    646
    Neredbojias
    Aug 14, 2005
  2. Matt
    Replies:
    0
    Views:
    641
  3. CSharpner
    Replies:
    0
    Views:
    1,060
    CSharpner
    Apr 9, 2007
  4. text justification

    , Oct 23, 2007, in forum: C Programming
    Replies:
    12
    Views:
    551
    Wade Ward
    Nov 26, 2007
  5. Knut Krueger
    Replies:
    8
    Views:
    282
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page