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!
So like, I wasn’t able to complete the exercise on my own because I thought the repeat function was only for rows/columns. But when I got the solution, apparently it works for Grid Template to optimize the code.
“This code will create four columns where the first and third columns will be 20 pixels wide and the second and fourth will be 50 pixels wide.” This from the curriculum.
It seems intuitive that this would produce 4 columns of 20, 20, 50, 50 but the answer says that we don’t move sequentially from left to right when we use the repeat function. We treat the 20px and 50px like a pair and repeat the pair?
What repeats is the space separated sequence following the count value. There is only one comma in that expression. Repeat 20px 50px means the distribution will be 20px 50px 20px 50px …