Aligning textboxes via HTML

Posted by Garry on Stack Overflow See other posts from Stack Overflow or by Garry
Published on 2012-03-31T06:21:29Z Indexed on 2012/03/31 11:29 UTC
Read the original article Hit count: 130

Filed under:

Here is my code:

Classroom name:                <input type="text" name="txtClassroomName" size="20"><br>
School name:                   <input type="text" name="txtSchoolName" size="20"><br>
School contact email address:  <input type="text" name="txtSchoolEmail" size="20"><br>
School address:                <input type="text" name="txtSchoolAddress" size="20"><br>
School telephone number:       <input type="text" name="txtTelephoneNumber" size="20"><br>

As you can probably guess, this code displays some text and then has some textboxes after this text.

My question is this: I am wanting to align all the texboxes so that they are aligned. I have added spaces after the text, yet the textboxes just appear straight after the text, ignoring the spaces that I entered. What is the best, most effective way to do this? Maybe a table?

thanks

© Stack Overflow or respective owner

Related posts about html