Click to See Complete Forum and Search --> : Input field size in tables


bluey83
07-25-2006, 05:22 AM
I have a form which is situated within a td cell in a table. I can't seem to be able to adjust the size of the input field though. It looks ok within Dreamweaver but not in the browser. What is the best way to fix this. Alos I orginally had this form in a table of it's own but I took it out. Was I right to to do this?

My code looks like this:

<tr>
<td width="20">&nbsp;</td>
<td width="142" height="130" class="bgcol">
<img src="../images/loghead.gif" />

<form action="BrokerLogin.aspx?location=index" method=post>
<span>Email:</span>
<br />
<input type=text name=txtEmail maxlength="44" width="100"/>
<br />
<span>Password:</span>
<br />
<input type=password name="txtPassword" width="100"/>
<br />
<input type=submit value="Login"/>
<br />
<span id="loginFailedMessage"></span>

</form>
</td>

bluey83
07-25-2006, 06:03 AM
I think I've solved it now. I used CSS to set the width of the box. It seems to work now. What I don't understand is why the actual width attribute associated with <input> doesn't work. I know that it's not compatible with Netscape but surely it should work.

pacerier
08-05-2006, 02:11 AM
i believe its the length attribute not width