Answers
Nov 21, 2006 - 08:06 AM
There are two kinds of textboxes in HTML, and <br> <br>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...) <br>but for the <textarea> it is quite simple with style="text-align: center" <br> <br>You can change the height of a <textarea> to make it look like an <input type="text"> field :-)
Nov 21, 2006 - 09:32 AM
I actually found the answer myself also. I was able to center the textbox like this:
It worked like a charm. Thanks for your input.
Feb 11, 2007 - 08:41 AM
John is right, "text-align: center" is all that is needed. Sorry for my mistake.
Feb 11, 2007 - 08:43 AM
text-align: center
This css property will center text within textboxes and textareas.
Examples:
Jan 05, 2015 - 12:01 AM



Add New Comment