PDA

View Full Version : Table Alignment with CSS



AJW06
Apr 5th, 2007, 07:59 PM
Hello Coders, could somone write the css code to align all text form fields. thank you in advance.



<!-- USER ENTRY FORM STARTS HERE -->


<form action="handleform.php" method="action">

<p>SURNAME: <input type="text" name="Surname" size="20" maxlength="40" /></p>

<p>INITIALS: <input type="text" name="Initials" size="20" maxlength="40" /></p>

<p>SOCIAL: <input type="text" name="Social" size="20" maxlength="40" /></p>

<p>ITEM DESCRIPTION: <input type="text" name="ItemDescription" size="20" maxlength="40" /></p>

<p>TOTAL COST: <input type="text" name="TotalCost" size="20" maxlength="40" /></p>

<p><input type="submit" name="submit" value="Submit" /></p>

</form>


<!-- USER ENTRY FORM ENDS HERE -->

karinne
Apr 5th, 2007, 08:02 PM
No ...

What have you tried so far? Did you try using a table to separate the name from the field? Or I've seen people use <dt> and <dd> for that too.

AJW06
Apr 5th, 2007, 08:07 PM
whats the best way to go about doing it.