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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Left Aligned Text Boxes

Status
Not open for further replies.

sandra45

Technical User
Apr 3, 2003
72
ID
Hi, I want to have my text boxes left aligned on the same column position, e.g. text box A on row 1 column 20, text box B on row 2 column 20, text box C on row 3 column 20. How to do this? Thanks a lot.

Regards,
Sandra
 
Sorry, can you please be more specific on how to do this? Thanks.

Regards,
Sandra
 

I don't think I can be any more specific.

You said that you wanted text boxes aligned on the 20th column of each row. This made me think that you have a table, with rows, each with at least 20 cells, otherwise you wouldn't be able to use the 20th cell.

Thus, I'm suggesting putting your input boxes in that 20th column on each row.

Maybe you could post your code if you're still having problems?

Dan
 
I think she means "row 1 column 20" as being a particular place on a character-mapped screen, rather than a particular cell in a table.

Sandra, the easiest way to do it (in my opinion) is to use a table:
[tt]
<form>
<table border=&quot;0&quot; cellspacing=&quot;2&quot;>
<tr>
<td>Label 1:</td>
<td><input name=&quot;field1&quot;></td>
</tr>
<tr>
<td>Label 2:</td>
<td><input name=&quot;field2&quot;></td>
</tr>
<tr>
<td>Long Label 3:</td>
<td><input name=&quot;field3&quot;></td>
</tr>
</table>
</form>
[/tt]


-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top