CSS responsive auto-fit grid template columns

Date: 2019-10-29

Source: https://rubenhuisman.nl/

.wrapper {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(250px, 500px));
  justify-content: center;
  grid-gap: 1rem;
}

27740cookie-checkCSS responsive auto-fit grid template columns