Css – Why are new rows being created before items shrink?
I'm trying to create a grid that shrinks items before creating new rows. Instead, it always creates new rows and never shrinks items. .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; justify-items: center; grid-gap: 2em; } .grid >…