need form help

They have: 9 posts

Joined: Mar 2000

Hi just me again. I am having trouble getting multiple text boxes on the same line here is the section of code:<TABLE>
<BLOCKQUOTE><P><TABLE BORDER=1 CELLSPACING=1>

<TR>
<TD WIDTH=116>
<h3>Mailing Address</h3><TD><H4><TEXTAREA NAME="Mailing Address" ROWS=5 COLS=43 WRAP="virtual"></TEXTAREA></TD></TR></BLOCKQUOTE></P>

<TABLE>
<BLOCKQUOTE><P><TABLE BORDER=1 CELLSPACING=1>

<TR>
<TD WIDTH=116 >
<H3>City</H3>
<INPUT TYPE="text" NAME="City" VALUE="" SIZE=10 MAXLENGTH="100">
<H3>State</H3><INPUT TYPE="text" NAME="State" VALUE="" SIZE=2 MAXLENGTH="2">
<H3>Zip Code</H3><INPUT TYPE="text" NAME="Zip Code" VALUE="" SIZE=5 MAXLENGTH="5"></TD></TR></TABLE></P>

Now the first part the mailing address is the way I want it, but the city, state, and zip is where the problem is at. I want all three to be on the same line, and to take up the same width as the address block.

They have: 231 posts

Joined: Feb 2000

Your HTML is very messy. The very first TABLE tag has no rows or cells defined.

If I understand correctly you want a TEXTAREA in the first row then 3 INPUT TEXT boxes in the second.

Try this:

code:

<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" colspan="3">
Mailing Address<br>
<textarea>
</textarea>
</td>
</tr>
<tr>
<td align="center">
City<br>
<input type="text">
</td>
<td align="center">
State<br>
<input type="text">
</td>
<td align="center">
Zip<br>
<input type="text">
</td>
</tr>
</table>
[/code]

It will not be easy getting the input boxes to take up the same space as the textarea. Netscape and Microsoft display text boxes differently. The width of form elements in Netscape are larger than those in MSIE.

[This message has been edited by Lloyd Hassell (edited 23 March 2000).] 

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

They have: 9 posts

Joined: Mar 2000

Yea thats the ticket!!! Thankyou!!
I may be a slow learner but I am learning.

quote:Originally posted by Lloyd Hassell:
Your HTML is very messy. The very first TABLE tag has no rows or cells defined.

If I understand correctly you want a TEXTAREA in the first row then 3 INPUT TEXT boxes in the second.

Try this:

code:

<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" colspan="3">
Mailing Address<br>
<textarea>
</textarea>
</td>
</tr>
<tr>
<td align="center">
City<br>
<input type="text">
</td>
<td align="center">
State<br>
<input type="text">
</td>
<td align="center">
Zip<br>
<input type="text">
</td>
</tr>
</table>
[/code]

It will not be easy getting the input boxes to take up the same space as the textarea. Netscape and Microsoft display text boxes differently. The width of form elements in Netscape are larger than those in MSIE.

[This message has been edited by Lloyd Hassell (edited 23 March 2000).]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.