Day 160

This should be easier than it seems... CSS GRID!
#CodingPhase #TheCodingWay #365CodingPhaseChallenge

**********

/* .photo {
  max-width: 20rem;
  height: 10rem;
} */

section {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-columns: auto auto auto auto; */
  background-color: #2196F3;
  grid-gap: 1rem;
}

.photo {
  background-color: rgba(255, 255, 255, 0.8);
}

#pic1 {
  max-width: 20rem;
  grid-column: 1 / span 2;
  align-self: stretch;
  justify-self: stretch;
  /* grid-column-end: 3; */
  /* column-span: 2; */
}

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2