Center anything with grid

Two lines to center both ways.

CSS · Center anything with gridBeginner
.center-box {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
centergridplace-itemsvertical