Center text in web Label control

Discussion in 'ASP .Net Web Controls' started by daniel kurtz, Oct 11, 2005.

  1. daniel kurtz

    daniel kurtz Guest

    OK, I've centered my Label on my default-sized page. How do I center the
    text within the label? There's not an 'alignment' property for the control,
    nor an 'align' attribute for the HTML. What gives?

    ddk
     
    daniel kurtz, Oct 11, 2005
    #1
    1. Advertising

  2. daniel kurtz

    Hal Guest

    Declare a css class to do the alignment for you. The label has a
    limited number of properties, becuase it's a simple label.
     
    Hal, Oct 11, 2005
    #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. Tom Bernsen

    Center Align Label and Hyperlink Control

    Tom Bernsen, Apr 22, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    17,852
    Ken Cox [Microsoft MVP]
    Apr 23, 2004
  2. kpg

    Center text in a label

    kpg, Oct 7, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    8,858
    Frankie
    Oct 7, 2005
  3. CSharpner
    Replies:
    0
    Views:
    1,035
    CSharpner
    Apr 9, 2007
  4. Alan Z. Scharf

    Web Label Control - Align:Center

    Alan Z. Scharf, Aug 4, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    163
    Alan Z. Scharf
    Aug 5, 2003
  5. Knut Krueger
    Replies:
    8
    Views:
    276
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page