6
Q:

how to place a table in center in css

<table style="border:1px solid black;margin-left:auto;margin-right:auto;">
2
table#yourTable {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -(H/2)px -(W/2)px;
    width: Wpx;
    height: Hpx;
}
0
.center {
  margin-left: auto;
  margin-right: auto;
}
-1

New to Communities?

Join the community