|
Hi John2,
There are two kinds of textboxes in HTML, <input type="text"> and <textarea>
For the first one (<input type="text">) I don't think it is possible to change the alignment (not even CSS's direction: rtl seems to have any effect...)
but for the <textarea> it is quite simple with style="text-align: center"
You can change the height of a <textarea> to make it look like an <input type="text"> field :-)
|
|
Expert:
|
jgivoni
|
|
Date:
|
Nov 21, 2006
|
|
Time:
|
12:06
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
Hi Jgivoni,
I actually found the answer myself also. I was able to center the textbox like this:
<input type="text" style="text-align:center">
It worked like a charm. Thanks for your input.
|
|
Expert:
|
john2
|
|
Date:
|
Nov 21, 2006
|
|
Time:
|
13:32
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
I realized that my first answer relied on a typing error, therefore I couldn't get it to work!
John is right, "text-align: center" is all that is needed. Sorry for my mistake.
|
|
Expert:
|
jgivoni
|
|
Date:
|
Feb 11, 2007
|
|
Time:
|
12:41
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
thanks for d answer...it really helps :)
|
|
Expert:
|
bundimun211
|
|
Date:
|
Aug 23, 2007
|
|
Time:
|
01:39
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|