943,969 Members | Top Members by Rank

Ad:
Aug 28th, 2006
0

Text input box alignment question

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
michael123 is offline Offline
93 posts
since Jun 2005
Aug 28th, 2006
0

Re: Text input box alignment question

Hi michael123,
This is an easy task since it can be done using a property[setting a property].

Quote ...
TextBox1.TextAlign = HorizontalAlignment.Right
Good luck.
Reputation Points: 55
Solved Threads: 11
Junior Poster
mostafadotnet is offline Offline
157 posts
since Jul 2006
Aug 28th, 2006
0

Re: Text input box alignment question

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 28th, 2006
0

Re: Text input box alignment question

Thank you very much for your response.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
michael123 is offline Offline
93 posts
since Jun 2005
Aug 31st, 2006
0

Re: Text input box alignment question

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
dss
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
dss is offline Offline
77 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Advice To Newbies
Next Thread in HTML and CSS Forum Timeline: schedule html code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC