Label Alignment

Discussion in 'ASP .Net' started by Joko, Mar 10, 2005.

  1. Joko

    Joko Guest

    Hi i want to ask how to make the label text align to the
    right instead to the left
    thax
     
    Joko, Mar 10, 2005
    #1
    1. Advertising

  2. Hi

    Just try the code

    put the below code in <head></head> section
    <style>
    .labelright{text-align:right;}
    </style>


    add the cssclass property

    <asp:Label id="Label1" runat="server" CssClass="labelright"></asp:Lable>

    regards
    charmis



    "Joko" <> wrote in message
    news:522301c52529$ba1fa4d0$...
    > Hi i want to ask how to make the label text align to the
    > right instead to the left
    > thax
     
    charmis p varghese, Mar 10, 2005
    #2
    1. Advertising

  3. Joko

    Joko Guest

    Thax man it works
     
    Joko, Mar 10, 2005
    #3
  4. Joko

    Guest

    Not really a perfect solution, however if you are going to use
    Microsoft's asp:Label and wish to be cross browser compatible this
    should work.

    <asp:Label Runat="Server" Id="lblBleah" style="float:left; width:150px;
    text-align:right; border:1px solid red;">hello</asp:Label>
     
    , Mar 10, 2005
    #4
    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. SD
    Replies:
    1
    Views:
    486
    Adrian Parker
    May 3, 2005
  2. Shapper
    Replies:
    2
    Views:
    752
    Scott Mitchell [MVP]
    May 7, 2005
  3. Josef K.

    <label><div></div></label> allowed?

    Josef K., May 20, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    13,547
    Josef K.
    May 22, 2005
  4. AJ
    Replies:
    6
    Views:
    1,046
  5. Knut Krueger
    Replies:
    8
    Views:
    292
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page