toolman
02-15-2004, 09:12 PM
Hi,
Im using the code below and trying to get one table on top of the other and to be centered in center of the page, but i cant seem to get it to work.... the tables just appear below one another.
Heres the code:
<div style="position: relative; z-index:1; top: 20%; " >
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="80%"
bgcolor="#5C5C5C">
<tr>
<td> </td>
</tr>
</table>
</center></div>
</div>
<div style="position: relative; z-index:2; top: 22%; " >
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="80%"
bgcolor="#282828">
<tr>
<td> </td>
</tr>
</table>
</center></div>
</div>
Im using the code below and trying to get one table on top of the other and to be centered in center of the page, but i cant seem to get it to work.... the tables just appear below one another.
Heres the code:
<div style="position: relative; z-index:1; top: 20%; " >
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="80%"
bgcolor="#5C5C5C">
<tr>
<td> </td>
</tr>
</table>
</center></div>
</div>
<div style="position: relative; z-index:2; top: 22%; " >
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="80%"
bgcolor="#282828">
<tr>
<td> </td>
</tr>
</table>
</center></div>
</div>