468,170 Members | 1,913 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

Novice question

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

Similar topics

7 posts views Thread by Christopher Richards | last post: by
2 posts views Thread by George | last post: by
21 posts views Thread by AES/newspost | last post: by
3 posts views Thread by herrcho | last post: by
1 post views Thread by Christo | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.