Posted by Raz on 10/12/76 11:25
Will
As suggested by Monsieur Jay, a bit of CSS...
.....
<style type="text/css">
..centerTable {
text-align: center;
}
..centerTable table {
position: absolute;
top: 50%;
left: 50%;
width: tableWidth;
height: tableHeight;
margin-left: -(tableWidth/2)px;
margin-top: -(tableHeight/2)px;
}
</style>
......
<div class="centerTable">
<table border="1">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</div>
HTH
Raz
Navigation:
[Reply to this message]
|