Complete the code to make the container a grid container.
container {
display: [1];
}display: flex; instead of grid.The display property set to grid makes the container a grid container.
Complete the code to create three equal columns in the grid container.
container {
display: grid;
grid-template-columns: repeat([1], 1fr);
}repeat(2, 1fr) which creates only two columns.auto inside repeat() which is invalid.The repeat(3, 1fr) creates three equal columns in the grid.
Fix the error in the code to properly define the grid container with two rows.
container {
display: grid;
grid-template-rows: [1];
}repeat().repeat().The correct syntax for repeating rows is repeat(2, 1fr) with a comma separating the number and size.
Fill both blanks to create a grid container with 4 columns and 2 rows.
container {
display: [1];
grid-template-columns: repeat([2], 1fr);
grid-template-rows: repeat(2, 100px);
}flex instead of grid for display.Setting display: grid; makes the container a grid. Using repeat(4, 1fr) creates 4 equal columns.
Fill all three blanks to create a grid container with 3 columns, 2 rows, and a 10px gap between grid items.
container {
display: [1];
grid-template-columns: repeat([2], 1fr);
grid-gap: [3];
grid-template-rows: repeat(2, 150px);
}flex instead of grid for display.repeat().Use display: grid; to create a grid container, repeat(3, 1fr) for three columns, and grid-gap: 10px; to add space between items.