Sat, 2003-09-06 05:34
I noticed some peculiar behaviour when centering tables in Internet Explorer not long ago and I came up with a handy fix that I thought I might share. The problem is that MSIE does not like the "margin: auto" style. Here is the fix:
.center { text-align: center; } .center table { margin: auto; }
All you do now is enclose your tables with <div class="center"> and "voila" - I think I am a genious!

<div class="center"> <table> <tr> <td> </td> <td> </td> </tr> </table> </div>