how to place a table in center in css

84

table#yourTable {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -(H/2)px -(W/2)px;
    width: Wpx;
    height: Hpx;
}
  <table align="center">
    ...
  </table>

Comments

Submit
0 Comments