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

Novice question

P: n/a
I am starting the move from Windows to web.

How do you do the equivalent of TextAlign on a web label the way go can on
it on a Windows label?
Any help is greatly appreciated.
Jul 19 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Label1.Style.Add("Text-Align", "center")
Greg Smith wrote:
I am starting the move from Windows to web.

How do you do the equivalent of TextAlign on a web label the way go can on
it on a Windows label?
Any help is greatly appreciated.
Jul 19 '06 #2

P: n/a
I would recommend studying up on HTML, CSS, and JavaScript. The rules for
HTML are completely different from the rules for Windows applications. A
Windows application draws itself. An HTML document is a text document with
markup that tells a browser how to draw it. Because HTML documents (which is
what ASP.Net renders) are displayed on all kinds of machines and browsers,
there are sets of rules for HTML, CSS, and JavaScript that define how HTML
can be formatted, and as I mentioned, the rules are entirely different.

Here's a good cross-platform reference:
http://www.w3.org/

Also, the MSDN Library has a good reference (but some of it is proprietary
to IE):
http://msdn.microsoft.com/library/en...asp?frame=true

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"Greg Smith" <gj*@umn.eduwrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
>I am starting the move from Windows to web.

How do you do the equivalent of TextAlign on a web label the way go can on
it on a Windows label?
Any help is greatly appreciated.

Jul 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.