I've been working on this JavaScript table and I'm stuck. I tried to find an answer here and on the web but unfortunately I couldn't.
What am I trying to do is align all the text fields and bring as close as I can the comments textbox.
<html>
<body>
<table cellspacing= "20px">
<tr><td></td><td></td><td rowspan="6" valign="top">Comments
<br><textarea rows="4" cols="40" name="Comments" tabindex="6"></textarea></td></tr>
<tr><td>Your Name*</td><td><input name="Name" id="Name" tabindex="1"></td><td></td></tr>
<tr><td>Company</td><td><input name="Company" id="Company" tabindex="2"></td></tr>
<tr><td>E-mail*</td><td><input name="Email" id="Email" tabindex="3"></td></tr>
<tr><td>Telephone*</td><td><input name="Phone" id="Phone" tabindex="4"></td></tr>
<tr><td>Your Partner name</td>
<td><input name="Partner" id="Partner" tabindex="5"></td>
<td>This is a text and it suppose to be long. Actually exactly this length.</td></tr>
</table>
</body>
</html>
Everything works great until I add the line:
<td>This is a text and it suppose to be long. Actually exactly this length.</td>
right before the table closing.
The matter is that this line suppose to be with the same line as the last textbox. This line pushes the comments textbox to the right side of the screen exactly by the length of the text. And I can't figure out how to bring it back so it would be aligned near the text fields.
I want it to look like this:
text|---| comments
text|---| |-------|
text|---| |-------|
text|---|
text|---| long text here
instead of this:
text|---| comments
text|---| |-------|
text|---| |-------|
text|---|
text|---| long text here