Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-22-2010, 02:40 PM   PM User | #1
GrapeJamAndFish
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
GrapeJamAndFish is an unknown quantity at this point
Question HTML Alignment help

Hey everyone,

I'm new to the forums and fairly new to HTML (which i'm sure you'll probably gather from my question ). 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?

Code:
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
GrapeJamAndFish is offline   Reply With Quote
Old 11-22-2010, 02:45 PM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
First, where is your form itself.

Code:
<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.
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
GrapeJamAndFish (11-22-2010)
Old 11-22-2010, 03:12 PM   PM User | #3
GrapeJamAndFish
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
GrapeJamAndFish is an unknown quantity at this point
Ahhh, I see. Thanks alot for the help!
GrapeJamAndFish is offline   Reply With Quote
Old 11-22-2010, 03:14 PM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by GrapeJamAndFish View Post
Ahhh, I see. Thanks alot for the help!
No problem. If you run into anymore problems, let us know.
teedoff is offline   Reply With Quote
Reply

Bookmarks

Tags
html alignment

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:25 PM.


Advertisement
Log in to turn off these ads.