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!

Text Box Align Right

Status
Not open for further replies.

dsmith1000

Programmer
Nov 21, 2001
8
US
Hello all,

I am looking for a way to align the value in a text box to the right. Users will put currency amounts in the fields.

Thanks lots,
David David Smith
 
hi david,

try this example:

<html>
<style>
.xxx{
text-align:right;
}

</style>
<head>
</head>

<body>

<form name=&quot;f1&quot;>
<input class=&quot;xxx&quot; type=&quot;text&quot; name=&quot;t1&quot;><br>
<input type=&quot;text&quot; name=&quot;t2&quot;><br>
<input type=&quot;button&quot; name=&quot;b1&quot; value=&quot;count&quot;><br>

</body>
</html>

hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top