[thelist] NN4 Form Fields in TD Problem

Jason Bauer jbauer at chimesnet.com
Mon Oct 14 14:36:01 CDT 2002


> Subject: [thelist] NN4 Form Fields in TD Problem

>        <td align="left" valign="top" nowrap>
>             <input type="text" name="phone1" size="3" maxlength="3"
> style="width:30px;" value="<%=strPhone1%>"> -
>             <input type="text" name="phone2" size="3" maxlength="3"
> style="width:30px;" value="<%=strPhone2%>"> -
>             <input type="text" name="phone3" size="4"
> maxlength="4"style="width:40px;" value="<%=strPhone3%>">
>        </td>

> NN4 is taking this table cell, and making the 3 fields be on top of each
> other. Other browsers are rendering it correctly by placing the form
fields
> one after another, on the same line.  I have even tried making this code
on
> just one line, with no carriage returns, and NN4 still inserts a breakline
> after each form field when rendering the page.


Since I imagine you can't make the table cell any larger, I would suggest
using non-breaking spaces. Instead of inserting a regular space between your
input fields and the dashes, use the &nbsp; character entity, and don't
leave any whitespace inside the table cell. Your cell becomes:

<td align="left" valign="top" nowrap><input type="text" name="phone1"
size="3" maxlength="3" style="width:30px;"
value="<%=strPhone1%>">&nbsp;-&nbsp;<input type="text" name="phone2"
size="3" maxlength="3" style="width:30px;"
value="<%=strPhone2%>">&nbsp;-&nbsp;<input type="text" name="phone3"
size="4" maxlength="4"style="width:40px;" value="<%=strPhone3%>"></td>

This should force NN4 (and any other browser) to display the entire thing on
one line. But, I haven't actually tested this so don't hurt me if it doesn't
work ;-)

---
Jason Bauer
jbauer at chimesnet.com
Programmer/Analyst
Chimes, Inc.




More information about the thelist mailing list