How to put table in the center of the page using CSS

Putting a table at the center of a page using CSS requires you to put the margin to 0 and width to a 100 percent,Below is a demo:

html, body {
    width: 100%;
}
table {
    margin: 0 auto;
}

If you where asking about the table to complete center, like some thing in total center., you can apply the following code.This code in CSS will let you put your table like floating. Tell me if it helps you out.

margin: 0px auto;
margin-top: 13%;