By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,434 Members | 2,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,434 IT Pros & Developers. It's quick & easy.

how to Align text left & vertical align middle

P: n/a
Kay
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.
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Spell text-align properly.

"Kay" <ko******@proteus.ie> wrote in message
news:Op**************@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.

Nov 17 '05 #2

P: n/a
Kay
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" <ch******@contractor.nocienaspam.com> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
Spell text-align properly.

"Kay" <ko******@proteus.ie> wrote in message
news:Op**************@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.


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.