View Full Version : HTML Alignment help

11-22-2010, 03:40 PM
Hey everyone,

I'm new to the forums and fairly new to HTML (which i'm sure you'll probably gather from my question :o). I'm having a little trouble with the alignment of a registration form which i'm working on. My problem is that I can't seem to get the input boxes to align themselves equally due to the fact that the field names are not of equal character length. Could anyone help me fix this?

First Name <input type="text" name="firstname"/>
Last Name <Input type="text" name="surname"/>
E-mail <input type="text" name="email"/>
Username <input type="text" name="username"/>
Password <input type="password" name="pwd"/>

Thank you very much in advance!


11-22-2010, 03:45 PM
First, where is your form itself.

<form action="somepage">
<td><input type="text" name="username" /></td>
</form>Then you can place form elements within tables. Then the table rows and columns will properly align your form inputs with each other.

11-22-2010, 04:12 PM
Ahhh, I see. Thanks alot for the help!

11-22-2010, 04:14 PM
Ahhh, I see. Thanks alot for the help!

No problem. If you run into anymore problems, let us know.