Right align content in input fields ?

liunx

Guest
How is it done ?.<br />
I can control the position of the field, but not the content. I have seen it done in a number of bank sites.<br />
I want to type from the far right side of the input field - like right aligned text in just about any text editor. The input field is in a form generated from a JSP.<br />
<br />
Hope anyone can help<!--content-->can you show us the site that does it.<!--content-->Sorry it's on our intranet so......<br />
However I was told in another forum that the trick is to put style="text-align:right" into the <input tag as shown in the piece of JSP code below.<br />
<br />
<TD align="left" class="iformp"><br />
<INPUT class="iform" style="text-align:right" type="text" name="F424SCUR" size="20" maxlength="20" value="<%= F424SCUR.getTextValue() %>"><br />
</TD><br />
<br />
Hope this might be usefull to others<!--content-->
 
Back
Top