Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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.

  • Users who have thanked teedoff for this post:

    GrapeJamAndFish (11-22-2010)

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ahhh, I see. Thanks alot for the help!

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •