.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  height: 7rem;
  background-color: gainsboro;
}

.grid span {
  padding: 0.25rem 0.5rem;
  color: white;
  background-color: teal;
}

.a {
  align-self: start;
  justify-self: start;
}

.b {
  align-self: center;
  justify-self: center;
}

.c {
  align-self: end;
  justify-self: end;
}