DEV Community

loading...

Discussion on: ⚡️ Flash Grid: learn CSS Grid by building a grid system

Collapse
guerriero_se profile image
Sebastiano Guerriero Author

Hi there! Rows are a bit more complicated. Not in CSS per se: you can define row templates just as you would define columns, with grid-template-rows and grid-row (or grid-row-start + grid-row-end). However, it is a bit more complicated to abstract utility classes, because the number of rows you need varies from layout to layout. Probably a good idea would be introducing .row-start and .row-end classes, then take advantage of CSS Grid implicit grids.