Re: aligning text in a asp label

Discussion in 'ASP .Net' started by Onur Bozkurt, Jul 25, 2003.

  1. Onur Bozkurt

    Onur Bozkurt Guest

    You can try using css. Create a custom css-class for your label and give the
    parameters in the css file.

    "Kay" <> wrote in message
    news:...
    > Hello,
    >
    > I have a asp lable control, which I use to display text in, I would like

    to
    > have the text display aligned to the left and vertical alignment middle,
    > however when I add the following style to the lable it does not work, the
    > VERTICAL-ALIGN is ignored, the TEXT-ALIGN is correct
    >
    > <asp:label id="lblBanner" style="VERTICAL-ALIGN: middle; TEXT-ALIGN: left"
    > runat="server" Width="100%" ></asp:label>
    >
    > could someone please tell me how to display the text valign middle and

    text
    > align left.
    >
    > Thanks,
    > Kay.
    >
    >
     
    Onur Bozkurt, Jul 25, 2003
    #1
    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. Shapper
    Replies:
    2
    Views:
    744
    Scott Mitchell [MVP]
    May 7, 2005
  2. Steven Bethard

    aligning text with space-normalized text

    Steven Bethard, Jun 30, 2005, in forum: Python
    Replies:
    6
    Views:
    380
    Steven Bethard
    Jul 1, 2005
  3. CSharpner
    Replies:
    0
    Views:
    1,047
    CSharpner
    Apr 9, 2007
  4. aligning text in label control

    , Jan 27, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    143
  5. Knut Krueger
    Replies:
    8
    Views:
    280
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page