Grid alignments

Report a typo

Arrange the objects within the container so that they adhere to the top and bottom, as well as to the left edge:

Fill in the gaps with the relevant elements
.cards { 
  width: 400px;
  height: 400px;
  background-color: skyblue;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  
  -content: space-between;
}

.card {
  width: 5em;
  height: 5em;
  background-color: tomato;
  padding: 0;
  margin: 0;
}
placetextjustifyalign

Create a free account to access the full topic