Answers for "center table css"

26

css vertical center

/*Remove comment to become a better programmer. */
/* No Flexbox */
.parent {
  position: relative;
}
.child {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* With Flexbox */

.parent {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
Posted by: Guest on January-11-2021
0

how to place a table in center in css

.center {
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on October-25-2020
0

css center table on page

<table align="center">
    ...
  </table>
Posted by: Guest on May-29-2020

Browse Popular Code Answers by Language