This video is a sequel of • Caveat of CSS flexbox grid and how to fix it , where I made a simple grid layout with Flexbox. I will show how to make a more advanced layout using :nth-child, calc() and css variables.
We will be able to change amount of cells in the row changing only one line of code, and also have different value for small screens.