Centering div

  • Using Grid
.parent {
  display: grid;
  place-items: center;
}