Applying what you have learned so far
As an exercise, consider this section of the https://rwd.education website:
Figure 5.21: Can you use your grid knowledge to lay out this section?
If you look in the Start
folder for this chapter’s code, you will see that, currently, those sections are just one under the other. Try to amend the code for that section using Grid Layout. Perhaps think about how you could easily have it showing one or two of those sections when screen space is limited, and the layout that is shown in the preceding screenshot when space allows.
And what about if the headings for those sections wrap? Do you want to make use of the subgrid
value to ensure they stay visually aligned?