hi everybody,
i do exercise CSS grid on Grid Garden and don’t understand exercise 28. i try doing it but haven’t received this answer.
Your garden is looking great. Here you’ve left a 50 pixel path at the bottom of your garden and filled the rest with carrots.
Unfortunately, the left 20% of your carrots have been overrun with weeds. Use CSS grid one last time to treat your garden.
Since you are on the last exercise, I assume it is obvious to you that we are expected to use the shorthand grid-template: here. In the previous exercises it was defined as: grid-template: rows / columns;
In pseudocode we could rephrase the instructions as:
row 1: greatest available height
row 2: 50px
column 1: one fifth of the total width
column 2: four fifths of the total width
Remember that in exercise 23 we got introduced to the new ‘fraction’ unit. It is useful to express values as described in row 1 and the columns.
@seal.seal like Miku said, how you split the rows before the / is fine. Now you need to split the columns. Remember how you can create fractions with fr: