Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Centering a table on the page Centering a table on the page Adam5000
I've got a page with a two row, two column table on it, and I've specified the width of the table as 300px as described below.
<table style="width: 300px">
<tr> <td> <p>Text 1 here.</p> </td> <td> <p>Text 2 here.</p> </td> </tr> <tr> <td> <p>Text 3 here.</p> </td> <td> <p>Text 4 here.</p> </td> </tr> </table>
Right now, the table is aligned with the left margin of the page, and I'd like it to be centered between the left and right margins.