css grid align

CSS
.grid {
  display: grid;
  align-items: center; /* left and right */
  justify-content: center; /* up and down */
}
Source

Also in CSS: