CSS Grid — Allowed
This gauge covers the promoted Grid chapter after Phase 7.
Learning goal
Build two-dimensional layouts with explicit tracks, deliberate placement, responsive track repetition, and clear item/content alignment while preserving logical source order.
Inherited tools
Everything allowed through ./phase7-allowed.html remains available.
Document metadata
metawithcharset="UTF-8"metawithname="viewport"andcontent="width=device-width, initial-scale=1.0"
Grid foundations
display: gridgrid-template-columnsgrid-template-rowsgap,row-gap, andcolumn-gap
Placement properties
grid-columngrid-rowgrid-template-areasgrid-area
Line-based placement may use positive line numbers, negative end lines, and span. Named areas must form complete rectangles.
Track functions and keywords
repeat()minmax()auto-fitauto-fill- Track sizes may use inherited units plus
fr,auto,min-content, andmax-content
Alignment properties
justify-items:stretch,start,end,centeralign-items:stretch,start,end,centerjustify-content:start,end,center,stretch,space-between,space-around,space-evenlyalign-content:start,end,center,stretch,space-between,space-around,space-evenly
Learning rules
- Grid properties affect the direct children of a grid container.
- Columns run on the inline axis; rows run on the block axis.
- Track lines number the boundaries around tracks, starting at 1.
grid-columnandgrid-rowplace an item by its start and end lines;spanstates how many tracks it covers.grid-areamay place an item into a named template area. Keep the DOM in a meaningful reading order.repeat()removes repeated track declarations;minmax()gives a track a lower and upper size.auto-fitcollapses empty repeated tracks, whileauto-fillpreserves them.justify-itemsandalign-itemsalign items inside their grid areas.justify-contentandalign-contentalign the entire track collection and require spare container space to show an effect.
Not allowed
- JavaScript
- Media queries and inline styles
- Grid auto-placement controls not listed here (
grid-auto-flow,grid-auto-columns, andgrid-auto-rows) - Item-specific Grid alignment (
justify-self,align-self, andplace-self) - Grid alignment shorthands (
place-itemsandplace-content) - Any HTML tag or CSS property not inherited or listed above
Pages
01-grid-tracks.html— Grid foundations, columns, rows, and gaps02-grid-placement.html— line placement and spans03-grid-areas.html— named template areas and source order04-track-functions.html—repeat()andminmax()05-responsive-grid.html—auto-fitversusauto-fill06-item-alignment.html— item alignment inside cells07-content-alignment.html— track collection alignment08-full-bleed-breakout.html— four-track gutter breakout (rule 36)
Rules to lean on
Rules 2, 10–12, 54–59, 72–80, 88, and 89–98.