table cells shrink when re-opening a hidden table

I have a big, intimidating form. To reduce the intimidation factor, I've hidden the fields so that the user can input a little at a time with no confusion.
My problem is with Firefox, Safari, Opera and Chrome. It works fine in IE.
When the page opens, it looks fine with the table width at 100% and the table cells filling it in fully. The problem is that when I click the link to hide the table, then re-open it, the table cells shrink down to an unexpected size. This happens in all the browsers (except IE). The code is listed here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="CSS/1440x900/input_multiple.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
//=========================================================================== ============
function showHideTable(theTable)
{
if (document.getElementById(theTable).style.display == 'none')
{
document.getElementById(theTable).style.display = 'block';
}
else
{
document.getElementById(theTable).style.display = 'none';
}
}
//Tablolar1 Göster / Gizle.
//=========================================================================== =============
//-->
//
</script>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size:1em;}

table#personalInfo {width:100%}
table#personalInfo tr {width:100%;font-size:1em;}
table#personalInfo th {bgcolor:#2455FF}
table#personalInfo td {width:17%; font-size:1em;}
#apDiv1 {
position:absolute;
width:98%;
z-index:1;
left: 1%;
top: 25%;
}
-->
</style></head>
<body>
<a href="javascript:;" onclick="showHideTable('personalInfo');return false">Personal info</a>
<div id="apDiv1">
<table id="personalInfo" style="display:noner" border="1" bordercolor="#000000" bgcolor="#FFFFFF">
<tr>
<th class="style38" >Personal Information</td>
<th>&nbsp;</td>
<th>&nbsp;</td>
<th>&nbsp;</td>
<th>&nbsp;</td>
<th>&nbsp;</td>
</tr>
<tr>
<td><div align="right">Spouse's first name:</div></td>
<td><input type="text" name="spouse_first_name" id="spouse_first_name" onfocus="MM_effectHighlight(this, 200, '#ffffff', '#FFFF66', '#FFFF66', true)" value="<?php echo ($row_rsbacchus['spouse_first_name']); ?>" size="16" /></td>
<td><div align="right">1st Spouse's first name:</div></td>
<td><input type="text" name="1st_spouse_first_name" id="1st_spouse_first_name" onfocus="MM_effectHighlight(this, 200, '#ffffff', '#FFFF66', '#FFFF66', true)" value="<?php echo ($row_rsbacchus['1st_spouse_first_name']); ?>" size="16"/></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="right">Race</div></td>
<td ><select name="race" id="race">
<option value="">--Select--</option>
<option value="Asian">Asian</option>
<option value="Alaskan Native">Alaskan Native</option>
<option value="American Indian">American Indian</option>
<option value="Black">Black</option>
<option value="Hispanic">Hispanic</option>
<option value="White">White</option>
</select></td>
<td><div align="right">Height: short; medium or tall</div></td>
<td><select name="height" id="height">
<option value="">--Select--</option>
<option value="short">short</option>
<option value="medium">medium</option>
<option value="tall">tall</option>
</select></td>
<td><div align="right">Birth year: </div></td>
<td><input type="text" name="birth_year" id="birth_year" onfocus="MM_effectHighlight(this, 200, '#ffffff', '#FFFF66', '#FFFF66', true)" value="<?php echo ($row_rsbacchus['birth_year']); ?>" size="16" /></td>
</tr>
</table></div>
</body>
</html>
KeysboundAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrichmonCommented:
>>My problem is with Firefox, Safari, Opera and Chrome. It works fine in IE.
That usually means you did not write your code standards compliant.  usuaully IE has the issue or quirks for standards compliant code.

An easy fix would be to consider an empty row that is always present, but that maintains the width you need by having something in the cells hold the width (style code, transparent image, etc)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KeysboundAuthor Commented:
He triggered some additional thoughts so I was able to get it figured out. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.