how to center a table in css code example
Example 1: how to center a table in html
<table style="border:1px solid black;margin-left:auto;margin-right:auto;">
Example 2: text in centre table css
text-align:center
Example 3: how to place a table in center in css
.center {
margin-left: auto;
margin-right: auto;
}
Example 4: 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;
}
Example 5: css center table on page
<table align="center">
...
</table>