Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Label Web Control Text Justification

Reply
Thread Tools

Label Web Control Text Justification

 
 
Philip
Guest
Posts: n/a
 
      10-08-2004
I can not find a means to justify the text (left, right, center) within an
ASP.NET label web control within vs.net. Certainly ... there must be a way.
Please advice.

--
Philip
 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      10-08-2004
Hey Philip,

The alignment is handled by the label's container. For example, you set the
alignment of the paragraph or table cell that encloses the label. Here's the
idea:

<html>
<head>
</head>
<body>
<form runat="server">
<p align="right">
<asp:Label id="Label1" runat="server">Hello There</asp:Label>
</p>
<!-- Insert content here -->
</form>
</body>
</html>


"Philip" wrote:

> I can not find a means to justify the text (left, right, center) within an
> ASP.NET label web control within vs.net. Certainly ... there must be a way.
> Please advice.
>
> --
> Philip

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
text justification gaetanoortisi@yahoo.it C Programming 12 11-26-2007 02:04 AM
dll config and web.config and Label Expressions (binding label text to dll config settings) CSharpner ASP .Net 0 04-09-2007 09:00 PM
full justification in text navigation header gorf HTML 3 08-14-2005 02:10 AM
Drop-Down List Justification? George ASP .Net 2 03-03-2004 09:41 PM
Text justification in XSL:FO Matt XML 0 02-29-2004 11:07 PM



Advertisments