Click to See Complete Forum and Search --> : format inside a text box?


bjnst6
October 18th, 2002, 01:07 AM
hello folks,

i've got a standard html text box...

and when the user types something in a standard html text box the text is left justified by default.

is there any way to right justify it?

should be an easy one for one or two of you. ;)

Zvona
October 18th, 2002, 05:35 AM
<input type="text" style="text-align:right;" value="Aligned to Right" />

Info : http://www.w3.org/TR/CSS1#text-align
Tutorial : http://www.w3schools.com/css/pr_text_text-align.asp