Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to right-justify input objects in a form?

Status
Not open for further replies.

dove85

MIS
Aug 8, 2001
19
US
Does any one know how to line up (right justify) these input objects?

Your help would be appreciated.
Dove85
-----------------------------------------


<HTML>
<BODY>
<FORM NAME=&quot;OrderedItemsForm&quot; METHOD=&quot;post&quot; ACTION=&quot;SUBMITxyz.jsp&quot;>
<TABLE>
<TR>
<TD ALIGN=LEFT> </TD><TD> </TD>
<TD ALIGN=RIGHT VALIGN=BOTTOM>Unit Price</TD>
<TD ALIGN=RIGHT VALIGN=BOTTOM>Total</TD>
</TR>
<TR>
<TD ALIGN=LEFT>Ordered Qty. :</TD>
<TD><INPUT TYPE=&quot;text&quot; NAME=&quot;qty&quot; SIZE=&quot;20&quot;></TD>
<TD><INPUT TYPE=&quot;text&quot; NAME=&quot;unit_price&quot; SIZE=&quot;20&quot;></TD>
<TD><INPUT TYPE=&quot;text&quot; NAME=&quot;total_cost&quot; SIZE=&quot;20&quot;></TD>
<TR>
<TD ALIGN=LEFT>Received Qty.:</TD>
<TD><INPUT TYPE=&quot;text&quot; NAME=&quot;rec_qty&quot; SIZE=&quot;20&quot;></TD>
<TD><INPUT TYPE=&quot;text&quot; NAME=&quot;unit_price_rec&quot; SIZE=&quot;20&quot;></TD>
<TD><INPUT readOnly TYPE=&quot;text&quot; NAME=&quot;total_cost_rec&quot; SIZE=&quot;20&quot;></TD>
</TR>
<TR>
<TD ALIGN=LEFT>Returned Qty:</TD><TD ALIGN=RIGHT><INPUT TYPE=&quot;text&quot; NAME=&quot;ret_qty&quot; SIZE=&quot;20&quot;></TD></TR>
</TR>
<TR>
<TD ALIGN=LEFT>Open Quanty:</TD><TD ALIGN=RIGHT><INPUT readOnly TYPE=&quot;text&quot; NAME=&quot;open_qty&quot; SIZE=&quot;20&quot;></TD>
</TR>
</TABLE>
</TD>
</TABLE>
</BODY>
</HTML>
 
I am not sure what you are asking. You have 8 input boxes, which ones do you want right-justified? Describe what right-justified means to you. Wushutwist
 
Wushutwist,

I want to right-justify the content of the 8 input boxes.

It has been resolved. The answer is:

<TD><INPUT TYPE=&quot;text&quot; STYLE=&quot;text-align:right&quot; NAME=&quot;qty&quot; SIZE=&quot;20&quot;></TD>

Thanks.
Dove85
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top