Text input box alignment question

Reply

Join Date: Jun 2005
Posts: 92
Reputation: michael123 is an unknown quantity at this point 
Solved Threads: 0
michael123 michael123 is offline Offline
Junior Poster in Training

Text input box alignment question

 
0
  #1
Aug 28th, 2006
By defalult the text in input box is left aligned, is it possble to have it right aligned? The reason to do this is I have a list of input box vertically, to input the price for each item, I want to show price(with decimal) right aligned so it looks more natural.

Thanks for any comment.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 155
Reputation: mostafadotnet is on a distinguished road 
Solved Threads: 10
mostafadotnet's Avatar
mostafadotnet mostafadotnet is offline Offline
Junior Poster

Re: Text input box alignment question

 
0
  #2
Aug 28th, 2006
Hi michael123,
This is an easy task since it can be done using a property[setting a property].

TextBox1.TextAlign = HorizontalAlignment.Right
Good luck.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Text input box alignment question

 
0
  #3
Aug 28th, 2006
Actually, you would use CSS:

HTML and CSS Syntax (Toggle Plain Text)
  1. <input type="text" style="text-align: right">

I'm not sure what language the other poster is coding in; probably ASP.NET/VB.NET.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 92
Reputation: michael123 is an unknown quantity at this point 
Solved Threads: 0
michael123 michael123 is offline Offline
Junior Poster in Training

Re: Text input box alignment question

 
0
  #4
Aug 28th, 2006
Thank you very much for your response.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 77
Reputation: dss is an unknown quantity at this point 
Solved Threads: 0
dss's Avatar
dss dss is offline Offline
Junior Poster in Training

Re: Text input box alignment question

 
0
  #5
Aug 31st, 2006
If you are using dreamweaver of frontpage.
then just select the textbox and choose alingment.
otherwise you need to write the code as given by other user.
Thankx
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC