PDA

View Full Version : How do I make the cells smaller?


keano
06-29-2006, 07:21 PM
I am trying to make the Street text etc and the entry boxes below closer together?

Images attached of how it is now and how I want it.

code for it is:

<table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolor="#000000">
<tr>
<td width="2%"></td>
<td width="20%" valign="top">Garaging Address </td>
<td width="21%"></td>
<td width="2%"></td>
<td width="10%"></td>
<td width="9%" bgcolor="#FFFFFF"></td>
<td width="9%" bgcolor="#FFFFFF"></td>
<td width="9%" bgcolor="#FFFFFF"></td>
<td width="9%" bgcolor="#FFFFFF"></td>
<td width="9%" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="6"></td>
<td height="6" valign="bottom" class="data_text">Street Number </td>
<td height="6" valign="bottom" class="data_text">Street</td>
<td height="6" valign="bottom"><span class="data_text">Unit</span></td>
<td height="6" class="style2"></td>
<td height="6" bgcolor="#FFFFFF"></td>
<td height="6" bgcolor="#FFFFFF"></td>
<td height="6" bgcolor="#FFFFFF"></td>
<td height="6" bgcolor="#FFFFFF"></td>
<td height="6" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td><input name="textfield" type="text" class="data_text" size="10" maxlength="8" /></td>
<td><input name="textfield2" type="text" class="data_text" size="20" maxlength="20" /></td>
<td><input name="textfield32" type="text" class="data_text" size="8" maxlength="8" /></td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td valign="bottom"><span class="data_text">City</span></td>
<td valign="bottom" class="data_text">State</td>
<td valign="bottom" class="data_text">Zip</td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td class="data_text"><input name="textfield4" type="text" class="data_text" size="24" maxlength="24" /></td>
<td><input name="textfield5" type="text" class="data_text" size="4" maxlength="2" /></td>
<td><input name="textfield3" type="text" class="data_text" size="7" maxlength="5" /></td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
</table>

Creative Insanity
06-29-2006, 08:52 PM
Change the cellpadding to 0 and use cellspacing instead.