joonstar
08-24-2005, 02:34 PM
<style>
.center {text-align:center}
</style>
<table>
<tr>
<td width='200' class='center' bgcolor='red'>
<table>
<tr>
<td width='100' bgcolor='blue'>text</td>
</tr>
</table>
</td>
</tr>
</table>
The blue table cell is centered inside the red table cell in IE.
But
The blue table cell is not centered inside the red table cell in FireFox.
How can I make it centered in both IE and FireFox in Style?
.center {text-align:center}
</style>
<table>
<tr>
<td width='200' class='center' bgcolor='red'>
<table>
<tr>
<td width='100' bgcolor='blue'>text</td>
</tr>
</table>
</td>
</tr>
</table>
The blue table cell is centered inside the red table cell in IE.
But
The blue table cell is not centered inside the red table cell in FireFox.
How can I make it centered in both IE and FireFox in Style?