luoi
07-08-2003, 11:21 AM
I want content to centered horizontally and vertically. So I used the following code:
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle">
my content here
</td>
</tr>
</table>
This worked okay in IE, but not in NS7. In NS7 the height of the table was only as high as the content, so the content was at the top of the window instead of the middle(vertically). So I tried the following code:
<table border="0" cellspacing="0" cellpadding="0" align="center" style="height:100%;width:100%">
<tr>
<td style="height:100%;width:100%; vertical-align:middle; text-align:center">
my content here
</td>
</tr>
</table>
Same results though, worked in IE but not in NS7.
Any thoughts on how to get it to vertically align in the middle of the window in NS7?
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle">
my content here
</td>
</tr>
</table>
This worked okay in IE, but not in NS7. In NS7 the height of the table was only as high as the content, so the content was at the top of the window instead of the middle(vertically). So I tried the following code:
<table border="0" cellspacing="0" cellpadding="0" align="center" style="height:100%;width:100%">
<tr>
<td style="height:100%;width:100%; vertical-align:middle; text-align:center">
my content here
</td>
</tr>
</table>
Same results though, worked in IE but not in NS7.
Any thoughts on how to get it to vertically align in the middle of the window in NS7?