FireEdgeX
0

LESSON 05 ยท CSS

Grid for two-dimensional layout

CSS Grid defines rows and columns for a two-dimensional composition.

6 min readIn progress

THE IDEA

Understand the concept

Grid works well when both rows and columns matter. Define tracks with grid-template-columns or grid-template-rows, then let items occupy cells; minmax and repeat make flexible, regular layouts easier to describe.

WORKED EXAMPLE

See it in context

Example