CSS Grid Card Examples
These examples use various alignment settings and track spanning to display the cards in a different way.
-
Default alignment (stretch)
These examples use the
align-items
value ofstretch
which results in all cards stretching to the maximum height. This is the initial value anyway. -
Align/justify center
These examples use alignment values of
center
. -
Span 2 columns
-
Span 2 rows
-
Span 2 columns, 2 rows