Skip to content
UPEEC

CSS Grid

Two-dimensional layout with rows and columns.

Easy
Comments 0
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

Responsive card grids without a single media query.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.