There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
grid-template: repeat(4, 1fr 2fr) / repeat(4, 3fr 2fr);
This above is the code used in the exercise for the parent element. the question demanded you apportion a child item to occupy the fifth and sixth rows. but from the code above the parent grid has only four rows.
From my understanding, negative integers basically start counting from the END of the grid. So grid-row-start: -1; would select the last grid line in the grid as the starting point. I suppose this might be useful if you don’t know exactly how many rows you have.
Can someone more knowledgeable correct me if I’m wrong.
I have understood that the first value in repeat, defines the number of rows or columns in a grid. The next 2 values define the size of those rows or columns.
I did not read that the first value duplicates something.
When we write repeat(3, 100px) we mean 3 rows or columns of 100px, not 6…
Morover, if this code means duplicate → repeat(4, 1fr 2fr) ← which size should have row or columns?
7.1. The Explicit Grid
Numeric indexes in the grid-placement properties count from the edges of the explicit grid. Positive indexes count from the start side (starting from 1 for the start-most explicit line), while negative indexes count from the end side (starting from -1 for the end-most explicit line).
Unlike the previous exercises in which we could see all the grids visually indicated by blue borders; why is that we cannot see other grids in this one and only the grid for A is shown?