[thelist] JS Question - Right align text in input box??

Aylard JA (James) jaylard at equilon.com
Wed Oct 18 11:50:42 CDT 2000


CDitty,

>      One of my co-workers need to have his input box text 
> right aligned.

	For IE4+ and Netscape 6, use style sheets, like so:

<input type="text" style="text-align: right;" value="Keep Right">

	Keep in mind that Netscape 4 right aligns the input control rather
than its content, so your co-worker will need to be certain not to apply the
style in that case (a good argument for using a linked or embedded style
sheet rather than an inline style declaration).

hth,
James Aylard




More information about the thelist mailing list