Hi @sreejithu, welcome to the forums.
Look at the lesson again and notice that the sample in the lesson is just like the code you’re asked to edit. There is only 4 columns. The box that you’re asked to span starts at what column and where do you want it to end?
@Claudiu, it’s good that you were able to solve the challenge but we try and help and guide people to a solution without giving full blown answers.
Also, while your answer will pass the tests the response you gave hasn’t been introduced yet. The instructions show the users another way to solve this lesson.
We have a .container which display the items grid.
We define our container with 3 columns (each column take 1fr(fraction) of space).
If we have 3 columns/rows we will have 4 lines in total.
ex. 3 columns = 4 lines; 10 columns = 11 lines.
We have already on the first row 3 columns: item1, item2, item3.
item1 it starts from line 1 and it ends to line 2
item2 it starts from line 2 and it ends to line 3
item3 starts from line 3 and it ends to line 4
notice the line 4 it’s the end of our last column
if we want one of the column to take more spaces we can define link this:
we want the item 2 to take 2 spaces at the end in the grid: we will define like this:
item2 {
grid-column: 2 (it will start from line to) / 4 (it will end to line 4);
}