PDA

View Full Version : Alignment of forms


todd
08-28-2002, 04:56 AM
I hope this is a simple question.

I want to display a form for data entry, but I want all of the text boxes to line up neatly regardless of the length of the text in front of them.

How do I do it?

The Wizzard
08-28-2002, 05:04 AM
Put them into a table...

Post your code and I will add the tables into it for you.

todd
08-28-2002, 05:30 AM
This is the basic form.


<form method="POST" action="script.php">
<p><input type="text" name="T1" size="5"></p>
<p><input type="text" name="T2" size="5"></p>
<p><input type="text" name="T3" size="5"></p>
<p><input type="text" name="T4" size="5"></p>
<p><input type="text" name="T5" size="5"></p>
<p><input type="text" name="T6" size="5"></p>
<p><input type="text" name="T7" size="5"></p>
<p><input type="text" name="T8" size="5"></p>
<p><input type="text" name="T9" size="5"></p>
<p><input type="text" name="T10" size="5"></p>
<p><input type="text" name="T11" size="5"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>


All I need you to show me is how to make all of the textboxes used for input in this form to be prefectly aligned verticaly.

The Wizzard
08-28-2002, 05:39 AM
Well they are aligned perfectly because they are all the same length... Im kinda confused with this now...