The extra cell showing under the ADVANCED SEARCH button is there because you're hiding the contents, but the cell structure is still present;
Code:
<table border="1" width="100%" bordercolor="#008000" id="table1">
<tr>
<td>
<input type=button OnClick="toggle_it('pr1')" VALUE="ADVANCED SEARCH">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%" id="pr1" name="police_response1" style="display:none;">
<tr>
<td align="right">Replace with the 3 tables:
<p><input name="fielder1" type="textbox" class="style7" value='' size='12'></p>
<p><input name="fielder2" type="textbox" class="style7" value='' size='12'></p>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
With the markup in red set to display:none;, the #table1 table still displays the <tr> and <td>. If you don't want that to happen, move the id and style to the <tr>;
Code:
<table border="1" width="100%" bordercolor="#008000" id="table1">
<tr>
<td>
<input type=button OnClick="toggle_it('pr1')" VALUE="ADVANCED SEARCH">
</td>
</tr>
<tr id="pr1" style="display:none;">
<td colspan="2">
<table width="100%" name="police_response1" >
<tr>
<td align="right">Replace with the 3 tables:
<p><input name="fielder1" type="textbox" class="style7" value='' size='12'></p>
<p><input name="fielder2" type="textbox" class="style7" value='' size='12'></p>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
Also, remove the name attribute in the <table> tag - it isn't a valid table attribute.
To center the 3 tables, its probably easiest to wrap them in a div with styles as; <div style="margin:auto; width:90%">, and change the width of the 3 tables from 30% to 33% each. Let the outer div set the width and margin (margin:auto; is what centers) and the inner tables expand to 100% of their container.
Bookmarks