473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to Align text left & vertical align middle

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
2 19354
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: smr78 | last post by:
Hi, Up to now, I didn't find a solution to align text in the middle of a inline neither block box in the vertical direction. That's because the vertical-align property is not active for many...
2
by: Thomas Scheiderich | last post by:
Is there a way to make a section of a <td> tag to go to the bottom of the cell? Below is a portion of my page. The <td class="BodyText"> tag has a "vertical-align:top" in the css file to move...
2
by: Eric Lindsay | last post by:
If I want to have the middle of an image vertically aligned with the middle of a heading (or several lines of heading), is there some particular way people would recommend? vertical-align: center...
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
13
by: Bill | last post by:
Hi How can I have IE7 act correctly on that ? The rules make the link text go down when hovered. It works in FF , I had to add a hard space right after the LI tag to have OP9 work but I can't...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
5
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand...
1
by: panos100m | last post by:
I cant put the text (register,members,find) in the center of the three buttons using Internet explorer... Any help will be much appreciated (html code below) <td class="ct"> <!-- menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.