Professional Web Applications Themes

how to Align text left & vertical align middle - ASP.NET

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....

  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. #2

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

    Spell text-align properly.

    "Kay" <kokeeffeproteus.ie> wrote in message
    news:OpbD6OgUDHA.1776TK2MSFTNGP09.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

  3. #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" <chaeberlcontractor.nocienaspam.com> wrote in message
    news:ubOlmcgUDHA.2104TK2MSFTNGP10.phx.gbl...
    > Spell text-align properly.
    >
    > "Kay" <kokeeffeproteus.ie> wrote in message
    > news:OpbD6OgUDHA.1776TK2MSFTNGP09.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

Similar Threads

  1. Spry horizontal menu: vertical text align issue
    By ez. in forum Adobe Dreamweaver & Contribute
    Replies: 0
    Last Post: January 24th, 04:41 AM
  2. How to add vertical align attribute to designer
    By James Geurts in forum ASP.NET Building Controls
    Replies: 3
    Last Post: August 17th, 04:51 PM
  3. I cannot get a png file to align all the way to left ofthe browser
    By Robsix6 in forum Macromedia Dynamic HTML
    Replies: 4
    Last Post: June 15th, 07:48 PM
  4. How to set button text Align to left?
    By boy0612 in forum ASP.NET Building Controls
    Replies: 1
    Last Post: July 30th, 07:13 PM
  5. Can perltidy left-align side comments to a specific column?
    By The Danimal in forum PERL Beginners
    Replies: 0
    Last Post: December 8th, 08:34 PM

Bookmarks

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