how to center the table in html using margin code example
Example 1: how to center the table horizontally css
table
{
margin-left: auto;
margin-right: auto;
}
Example 2: align table in middle of page
table#yourTable {
position: fixed;
left: 50%;
top: 50%;
margin: -(H/2)px -(W/2)px;
width: Wpx;
height: Hpx;
}