Current location: Hot Scripts Forums » General Community » The Lounge » TextAlign for textbox


TextAlign for textbox

Reply
  #1 (permalink)  
Old 07-26-04, 08:52 AM
fchain311 fchain311 is offline
New Member
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
TextAlign for textbox

Does anybody know why there's no textalign property for the web.ui.webcontrols textboxes in asp.net? and is there any other way to align the text in those textboxes.

thanx,
David
Reply With Quote
  #2 (permalink)  
Old 07-26-04, 07:49 PM
Ethan Ethan is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
I don't think that you can align text in text boxes, but I am not totally sure on that.
__________________
Lowterstudios.com - Webdeveloper Community

Norics.com - PHP MySQL Personal or Business Hosting - Webmaster Articles

Reversedlogic.net - Interactive Designing Site
Reply With Quote
  #3 (permalink)  
Old 08-16-04, 01:28 PM
thejammer thejammer is offline
New Member
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb You can center text in asp.net webcontrol textbox by

adding this code to you style sheet:

.TextBoxAlignRight
{
text-align : right;
}

then in the html code set the css sheet property by this:


<asp:TextBox id="tb1" runat="server" CssClass="TextBoxAlignRight" />
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.