how to centralize a html table using CSS ?

To centralize a html table we will need to set left and right margin css properties of table to auto and apply the css class on html table.

table{
margin-left:auto;
margin-right:auto;
}

Advertisements