Loading tutorials
fr unit and the gap property control that division. It assumes you know basic CSS selectors and the box model, and that you can read px, rem, and percentage lengths. It also assumes you have already7 min readheader, main, aside and footer, and length units such as px, rem and fr. You should already be able to turn an element into a grid container with explicit columns. Here you will learn how to6 min readheader, main, aside and footer, and have already seen display: grid with grid-template-columns. The previous chapter showed how grid-template-areas draws a map of named regions. Here you connect real ele6 min readfr units and gap, and place items with grid-area. Those topics come earlier in this tutorial. Here the focus is the rules a grid-template-areas value must follow. Browsers do not repair a broken map. They throw away6 min readrepeat() and minmax(). You will use them to define columns that have a floor, a ceiling, and a repeating pattern. The next chapters build responsive layouts on top of them.7 min readdisplay: grid, size tracks with fr units and gap, and use repeat() and minmax() in grid-template-columns. It also assumes basic familiarity with media queries. Here you will build a card grid whose column count changes with the con6 min readgrid-template-columns with fr units and gap. It also assumes you have seen repeat() and minmax() and know that repeat(auto-fit, minmax(200px, 1fr)) produces a responsive column count. Here you learn the one place where auto-fit and auto-fill differ,7 min readrepeat(auto-fit, minmax(200px, 1fr)) and its one-line fix. It assumes you can write that declaration, as covered in the earlier chapters on repeat(), minmax() and auto-fit. It also assumes you know the CSS box model and what a percentage resolves against. A7 min readgrid-template-areas layout at different viewport widths without touching the HTML. It assumes you can read the earlier chapters' area maps and grid-area rules, know semantic elements such as header, main, aside and footer, and have written a basic `@med6 min readgrid-template-areas. The card list inside the main region uses repeat(auto-fit, minmax()). I assume you already know how to write and place named areas with grid-area, how auto-fit differs from `auto5 min readgrid-template-areas map and place items with grid-area. It also assumes you know that a grid is made of numbered lines, with tracks between them. Here you will learn that every named area also creates named lines. You can use those lines for placement5 min read