faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 8 people (63%) answered Yes
Recently 5 of 8 people (63%) answered Yes


How can I set the alignment INSIDE the textfield of a formular ?

Feb 3rd, 2005 04:56
Stoyan Stefanov, Markus Mirsberger,

<input style="text-align: right;" type="text" name="some_name1"
value="I'm aligned right" />
<input style="text-align: center;" type="text" name="some_name2"
value="I'm centered" />
<textarea style="text-align: center;" name="some_name3">
And I'm centered
Using this to align text in password fields can look really ... hmm,
surprising :)
<input style="text-align: center;" type="password" name="pswd" />