Using this HTML I was able to force the table to be aligned in center:
<table align="center">
<tr>
<td>
Something
</td>
</tr>
</table>
Now, what's the equivalent in CSS, so I could do
<style type="text/css">
<!--
.myTableClass {background-color: #808080; text-align: center}
-->
</style>
<table class="myTableClass">
<tr>
<td>
Something
</td>
</tr>
</table>
As I tried in this example above, using text-align propery doesn't help.
Thank you,
-- Pavils
The best answer I've found is to put the table inside
a centered DIV tag like this:
<div style="text-align: center"><table>...</table></div>
Cheers,
Andrew
>-----Original Message-----
>Hallo,
>
>Using this HTML I was able to force the table to be
aligned in center:
>
><table align="center">
><tr>
><td>
>Something
></td>
></tr>
></table>
>
>Now, what's the equivalent in CSS, so I could do
>
><style type="text/css">
><!--
>..myTableClass {background-color: #808080; text-align:
center}
>-->
></style>
>
><table class="myTableClass">
><tr>
><td>
>Something
></td>
></tr>
></table>
>
>
>As I tried in this example above, using text-align
propery doesn't help.
>
>Thank you,
>
>-- Pavils
>
>
>.
>