I've got a table inside a div like so:
<div style="text-align: center; padding-top: 3.5em;">
<table>
...
</table>
</div>
The div spans the entire page. The table takes up about 1 fifth of the div width. Yet my div CSS is not working. The table is still left-aligned (the top padding is ok).
Does anybody know why my table won't center?



Reply With Quote

Bookmarks