[Home]How do I center a table

HomePage | RecentChanges | Preferences | Newbie Help

HTML Tables


Comments --

If you're using HTML4 transitional then you can always use a backwards compatible method of achieving it.

In your stylesheet:

div table {margin-left: auto; margin-right: auto}

In your HTML:

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

-- On Mon, 09 Apr 2001 13:17:26 GMT, Ian Davey on comp.infosystems.www.authoring.html


HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited December 8, 2002 7:49 am (diff)
Search:

This FAQ is happily hosted by Betadome Digital Media