.grid-container { display: grid; grid-template-columns: auto auto auto auto; grid-gap: 10px; background-color: red; padding: 10px; } .grid-container > div { background-color: blue; text-align: center; padding: 20px; font-size: 15px; }