To add columns to a grid, use the grid-template-columns property on a grid container.
The number of parameters given to the grid-template-columns property indicates the number of columns in the grid, and the value of each parameter indicates the width of each column.
Final Code
<style>.d1{background:LightSkyBlue;}.d2{background:LightSalmon;}.d3{background:PaleTurquoise;}.d4{background:LightPink;}.d5{background:PaleGreen;}.container{font-size:40px;width:100%;background:LightGray;display:grid;/* Only change code below this line */grid-template-columns:100px100px100px;/* Only change code above this line */}</style><divclass="container"><divclass="d1">1</div><divclass="d2">2</div><divclass="d3">3</div><divclass="d4">4</div><divclass="d5">5</div></div>