...

View Full Version : HTML Alignment help



GrapeJamAndFish
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"/>
</br>
Last Name <Input type="text" name="surname"/>
</br>
E-mail <input type="text" name="email"/>
</br>
Username <input type="text" name="username"/>
</br>
Password <input type="password" name="pwd"/>

Thank you very much in advance!

Regards,
Josh

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


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

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

teedoff
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum