center a item css using display table code example
Example 1: how to center the table horizontally css
table
{
margin-left: auto;
margin-right: auto;
}
Example 2: css center table on page
<table align="center">
...
</table>
table
{
margin-left: auto;
margin-right: auto;
}
<table align="center">
...
</table>