Click to See Complete Forum and Search --> : Aligning VALUE in a FORM to the RIGHT


Duke Will
08-28-2003, 09:55 AM
At this page (http://www.wepay.com) I have $2 stuck in the donate amount window but it is not aligning to the right, as i would like. it would look better if aligned flush right. Code in the form...

Pledge Amt: <b>$</b><input type="text" name="pledge" value="2" size="3" maxlength="7" align="right"><b>.00</b> (suggest $2 minimum)<br><br>

I just stuck that align="right" in there; it didn't work. I just thought it might. Any idea?

Can I format the "2" inside that window? Like make it red or bold?

Charles
08-28-2003, 10:12 AM
<input style="width:5em; text-align:right; font-weight:bold; color:#f00" type="text" value="2">

pyro
08-28-2003, 10:13 AM
To align it to the right add style="text-align: right;" to the <input> tag.

If you want the text red and bold, it will apply to all text in the input box, but you'd just add this: style="color: red; font-weight: bold; text-align: right;"