The code below aligns a table exactly how I want and works in all browsers. The problem is when I open a link from that page to another page that uses the exact same method, the top of the table on that page will be at the very top of the page, not vertically aligned. If you hit the brower's refresh button, it will vertically align, but that's no good.
Is there a fix for this problem? Or do you know of a better way to vertically align a table that works in all browsers?
<body bgcolor="#000000" topmargin="0" leftmargin="0">
<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse" height="100%">
<tr>
<td>
<div align="center">
<table border="0" width="100%" id="table2" cellpadding="0" style="border-collapse: collapse" height="500" bgcolor="#000000">
<tr>
<td>
<p align="center"><font color="#FFFFFF">Table contents here</font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<p align="center"><a target="_blank" href="artmuseum.htm"><img border="0" src="itsok.png" width="273" height="14"></a></p>
<p align="center"> </p>
<p align="center"> </p>
</body>
Is there a fix for this problem? Or do you know of a better way to vertically align a table that works in all browsers?
<body bgcolor="#000000" topmargin="0" leftmargin="0">
<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse" height="100%">
<tr>
<td>
<div align="center">
<table border="0" width="100%" id="table2" cellpadding="0" style="border-collapse: collapse" height="500" bgcolor="#000000">
<tr>
<td>
<p align="center"><font color="#FFFFFF">Table contents here</font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<p align="center"><a target="_blank" href="artmuseum.htm"><img border="0" src="itsok.png" width="273" height="14"></a></p>
<p align="center"> </p>
<p align="center"> </p>
</body>