473,327 Members | 2,118 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,327 software developers and data experts.

Some questions about Label

Hello.

I have a Label control on my web form and I have long text in it.
What I want is to disable text wrapping of this Label.
Is it possible?

Also I want to know how can I set text alignment to right in Label?

Thank you.
Nov 19 '05 #1
2 1407
If the text has multiple words in the text, Label wraps automatically

Kumar Reddi
http://kumarreddi.blogspot.com

"David" <da*********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Hello.

I have a Label control on my web form and I have long text in it.
What I want is to disable text wrapping of this Label.
Is it possible?

Also I want to know how can I set text alignment to right in Label?

Thank you.

Nov 19 '05 #2
Label renders as a <span>. CSS rule word-wrap is applicable to <span>.
Attach to your label a style with word-wrap:normal into.

For the text alignment use style rule text-align: right.

Eliyahu

"David" <da*********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Hello.

I have a Label control on my web form and I have long text in it.
What I want is to disable text wrapping of this Label.
Is it possible?

Also I want to know how can I set text alignment to right in Label?

Thank you.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave | last post by:
I am converting an ASP Classic web site to an ASP.NET application and have some real basic formatting or design questions. (The classic ASP site has both code (forms) and content pages.) 1.When...
1
by: TBK | last post by:
I'm trying to finish up an assignment I had for a class and basically I'm stuck. The program is supposed to take information you've entered, put it into an array, display it in a listbox and then...
1
by: danilo of TUP | last post by:
Greetings, im Danilo, a student from TUP Manila and taking up COMPUTER SCIENCE. we are going to have a defense or we could say a project in turbo c. i just wanna know how to use the SWITCH...
7
by: Brian | last post by:
Hi, here is exactly what I want to try and do. On a simple level, when the user clicks on a textbox the matching label will change colors to hightlight the which field they are editing. By...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.