how to Align text left & vertical align middle

Ask a Question related to ASP.NET, Design and Development.

  1. #1

    Default how to Align text left & vertical align middle

    Hello,

    I have a asp lable control, which I use to display text in, I would like to
    have the text display aligned in the center and vertical alignment left
    however when I add the following style to the lable it does not work

    <asp:label id="lblBanner" style="text-aligh:left;vertical-align:middle;"
    runat="server" Width="100%" ></asp:label>

    could someone please tell me how to display the text valign middle and text
    align left.

    Thanks,
    Kay.


    Kay Guest

  2. Similar Questions and Discussions

    1. Spry horizontal menu: vertical text align issue
      Hello all, I have a simple horizontal Spry menu I'm working on. The menu is single level - no submenus. The problem is that I cannot get the...
    2. How to add vertical align attribute to designer
      Hi, I am trying to add designer support to my custom web control. It's similar to the Panel control and I'd like to allow the user to specify...
    3. I cannot get a png file to align all the way to left ofthe browser
      So I have my navbar created in fireworks and it works fine, its just that I cannot get to line up on the left side of the browser... There is...
    4. How to set button text Align to left?
      How to set button.text Align to left?
    5. Can perltidy left-align side comments to a specific column?
      Dear Perl beginners and mentors thereto, I would like to use perltidy to left-align side comments in a Perl script to a specific column, if...
  3. #2

    Default Re: how to Align text left & vertical align middle

    Spell text-align properly.

    "Kay" <kokeeffe@proteus.ie> wrote in message
    news:OpbD6OgUDHA.1776@TK2MSFTNGP09.phx.gbl...
    > Hello,
    >
    > I have a asp lable control, which I use to display text in, I would like
    to
    > have the text display aligned in the center and vertical alignment left
    > however when I add the following style to the lable it does not work
    >
    > <asp:label id="lblBanner" style="text-aligh:left;vertical-align:middle;"
    > runat="server" Width="100%" ></asp:label>
    >
    > could someone please tell me how to display the text valign middle and
    text
    > align left.
    >
    > Thanks,
    > Kay.
    >
    >

    Chuck Haeberle Guest

  4. #3

    Default Re: how to Align text left & vertical align middle

    Yes I have it spelled correctly in the application that was a typo when I
    was typing up the message. My query is that setting the style does not do as
    I would have expected i.e. vertical align in the middle and text align left.
    Does any one know how to achive this ?

    Thanks,
    Kay.
    "Chuck Haeberle" <chaeberl@contractor.nocienaspam.com> wrote in message
    news:ubOlmcgUDHA.2104@TK2MSFTNGP10.phx.gbl...
    > Spell text-align properly.
    >
    > "Kay" <kokeeffe@proteus.ie> wrote in message
    > news:OpbD6OgUDHA.1776@TK2MSFTNGP09.phx.gbl...
    > > Hello,
    > >
    > > I have a asp lable control, which I use to display text in, I would like
    > to
    > > have the text display aligned in the center and vertical alignment left
    > > however when I add the following style to the lable it does not work
    > >
    > > <asp:label id="lblBanner" style="text-aligh:left;vertical-align:middle;"
    > > runat="server" Width="100%" ></asp:label>
    > >
    > > could someone please tell me how to display the text valign middle and
    > text
    > > align left.
    > >
    > > Thanks,
    > > Kay.
    > >
    > >
    >
    >

    Kay Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139