Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Center allignment

Reply
Thread Tools

Center allignment

 
 
Aitham alama
Guest
Posts: n/a
 
      07-18-2004
How can i make a dynamically created web label control to to be Center
allignment

Thanks


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      07-18-2004
"Aitham alama" <> wrote in message
news:%...
> How can i make a dynamically created web label control to to be Center
> allignment


A Label control simply generates a <span>. By itself, there's no way to
align a span.

You can place the Label control inside of a <div>, for instance:

<div style="text-align: center">
<asp:Label .../>
</div>

--
John Saunders
johnwsaundersiii at hotmail


 
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
Memory allignment/type casting question MisterE C Programming 6 10-09-2008 12:11 AM
allignment James HTML 5 03-25-2006 01:27 AM
Naming of core NASA center with the words "Mission Control Center" & mass use of religious anthem sounding word "Mission" in Context of Space Exploration & the Moon Landing Hoax moonlandinghoaxreligious@yahoo.com Digital Photography 0 09-27-2005 08:28 PM
help - right allignment of text EB Java 7 02-16-2004 09:59 PM
allignment of structure Anthony C++ 1 11-11-2003 02:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57