Programming flashcards

CSS Flexbox and Grid

CSS Flexbox and Grid flashcards for layout, alignment, gaps, tracks, and responsive design.

41 cards By @mazo
#css#flexbox#grid#frontend
Study this deck free Browse Programming

About this deck

This CSS Flexbox and Grid deck reviews practical layout vocabulary: axes, tracks, gaps, alignment, item sizing, auto placement, and responsive patterns.

It is designed for frontend learners who want quick recall while building real layouts, not a long theory article.

41cards
Beginner to intermediate CSSlevel
frontend developers, web design students, and CSS interview practiceaudience

What you will learn

How to study this deck

Scope

This deck focuses on layout recall. It does not replace building real layouts, browser testing, or accessibility checks.

Review notes

CSS layout scope last reviewed for public SEO pages on 2026-07-06.

All 41 cards in this deck

FrontBack
display: flexCreates a flex formatting context for direct children
flex-direction: rowMain axis runs horizontally in the inline direction
flex-direction: columnMain axis runs vertically in the block direction
flex-wrap: wrapAllows flex items to move onto multiple lines
justify-contentAligns flex items along the main axis
align-itemsAligns flex items along the cross axis
align-contentDistributes multiple flex lines along the cross axis
gapSets space between flex or grid items without margins
flex-growControls how much an item grows into free space
flex-shrinkControls how much an item shrinks when space is tight
flex-basisSets the initial main-axis size of a flex item
flex: 1Shorthand for a flexible item that can grow and shrink
orderChanges visual order of flex or grid items
align-selfOverrides cross-axis alignment for one item
min-width: 0 in flexLets overflowing text shrink inside flex items
display: gridCreates a grid formatting context for direct children
grid-template-columnsDefines explicit column tracks
grid-template-rowsDefines explicit row tracks
fr unitShares available grid space as a fraction
repeat()Repeats a grid track pattern
minmax()Sets a grid track minimum and maximum
auto-fitCollapses empty repeated tracks when space remains
auto-fillKeeps empty repeated tracks available
grid-columnPlaces or spans an item across columns
grid-rowPlaces or spans an item across rows
grid-areaNames or positions an item in a grid
grid-template-areasDefines named layout regions with strings
place-itemsShorthand for align-items and justify-items
place-contentShorthand for align-content and justify-content
justify-itemsAligns grid items inside their grid areas horizontally
implicit gridTracks created automatically for unplaced items
grid-auto-flowControls how auto-placed grid items flow
grid-auto-columnsSets size of implicit columns
grid-auto-rowsSets size of implicit rows
subgridLets a nested grid inherit parent tracks where supported
responsive grid patternrepeat(auto-fit, minmax(16rem, 1fr))
content-first layoutUse intrinsic sizes before forcing fixed widths
centering with griddisplay: grid; place-items: center;
centering with flexdisplay: flex; justify-content: center; align-items: center;
when to use FlexboxUse for one-dimensional row or column layout
when to use GridUse for two-dimensional rows and columns

Frequently asked questions

Should I learn Flexbox or Grid first?

Learn both. Flexbox is best for one-dimensional row or column layout, while Grid is best for two-dimensional page or component layout.

Does this deck include responsive CSS patterns?

Yes. It includes common patterns such as repeat(auto-fit, minmax(...)) and layout alignment shorthands.

Is this useful for frontend interviews?

Yes for quick recall, especially when paired with real examples and layout practice.

Is the CSS Flexbox and Grid flashcard deck free?

Yes. You can study it free in your browser on MazoCards. Create a free account to save progress, track streaks, and sync across devices.

Start studying CSS Flexbox and Grid

Study these 41 cards free, then create an account to save your progress and build a streak.