この解答例はChatGPTによって生成されています,正しいかは自己判断で。

BFE.devでのAI解答例 - CSS 質問
23. Grid Layout 2

.container { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* auto-fill: fill up the space; minmax: minimum width of 100px; 1fr: fill up remaining space */ grid-gap: 10px; }

.item { height: 50px; background-color: #7aa4f0; }