Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: aligning text in a asp label

Reply
Thread Tools

Re: aligning text in a asp label

 
 
Onur Bozkurt
Guest
Posts: n/a
 
      07-25-2003
You can try using css. Create a custom css-class for your label and give the
parameters in the css file.

"Kay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have a asp lable control, which I use to display text in, I would like

to
> have the text display aligned to the left and vertical alignment middle,
> however when I add the following style to the lable it does not work, the
> VERTICAL-ALIGN is ignored, the TEXT-ALIGN is correct
>
> <asp:label id="lblBanner" style="VERTICAL-ALIGN: middle; TEXT-ALIGN: left"
> runat="server" Width="100%" ></asp:label>
>
> could someone please tell me how to display the text valign middle and

text
> align left.
>
> Thanks,
> Kay.
>
>



 
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
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
Aligning text =?Utf-8?B?Sm9l?= ASP .Net 2 01-25-2006 07:35 PM
aligning text with space-normalized text Steven Bethard Python 6 07-01-2005 05:38 PM
label versus asp:label Question. Thanks. Shapper ASP .Net 2 05-07-2005 05:55 AM
aligning text in label control pat.simpson@calvert.com ASP .Net Mobile 0 01-27-2005 01:10 PM



Advertisments