Center allignment

Discussion in 'ASP .Net' started by Aitham alama, Jul 18, 2004.

  1. Aitham alama

    Aitham alama Guest

    How can i make a dynamically created web label control to to be Center
    allignment

    Thanks
     
    Aitham alama, Jul 18, 2004
    #1
    1. Advertising

  2. "Aitham alama" <> wrote in message
    news:%...
    > How can i make a dynamically created web label control to to be Center
    > allignment


    A Label control simply generates a <span>. By itself, there's no way to
    align a span.

    You can place the Label control inside of a <div>, for instance:

    <div style="text-align: center">
    <asp:Label .../>
    </div>

    --
    John Saunders
    johnwsaundersiii at hotmail
     
    John Saunders, Jul 18, 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. Maximus

    About Application Center Test

    Maximus, Dec 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    602
    Maximus
    Dec 10, 2003
  2. EB
    Replies:
    7
    Views:
    515
    Dale King
    Feb 16, 2004
  3. James

    allignment

    James, Mar 24, 2006, in forum: HTML
    Replies:
    5
    Views:
    538
    dorayme
    Mar 25, 2006
  4. Anthony

    allignment of structure

    Anthony, Nov 11, 2003, in forum: C++
    Replies:
    1
    Views:
    539
    Victor Bazarov
    Nov 11, 2003
  5. MisterE

    Memory allignment/type casting question

    MisterE, Oct 8, 2008, in forum: C Programming
    Replies:
    6
    Views:
    402
    CBFalconer
    Oct 9, 2008
Loading...

Share This Page