I am new to html. This is a very simple question. I am dealing with forms. I want all the input text fields to start at the same x-axis point regardless of the size of the label. I want the labels to be left aligned and all the text fields to start at the same x-axis point.I don't want to use tables or " ". Is there a simple solution or Should I use separate divisions for labels and input fields? I don't mind using css but I prefer it to be simple.
<form>
<input type="text" name="n1"><br>
<label>Phone No.</label>
<input type="text" name="p1">
</form>
I want "n1" and "p1" to start at the same x-axis point.
Input text fields
Moderator: Project members
-
- 500 Command not understood
- Posts: 2
- Joined: 2015-03-15 08:16
- First name: Kristian
- Last name: Beronis
Input text fields
<URL removed, not allowed.>
- audiopro
- 226 Transfer OK
- Posts: 295
- Joined: 2013-03-23 12:55
- First name: Keith
- Location: Morecambe, England
Re: Input text fields
This is one situation where tables would be the easiest way as the data is in a tabular form.
Morecambe - Where the sun goes at night
Re: Input text fields
You should use XHTML, easier to parse and easier to write.