grid setup
Number of Rows:
Number of Columns:
Number of grid items:
.wrapper properties
Resize Rows / Columns:
Row Number:
Row Size:
Column Number:
Column Size:
grid-auto-flow:
grid-row-gap:
grid-column-gap:
justify-items:
align-items:
justify-content:
align-content:
.grid-item properties
(click grid item to select)
grid-column:
/
grid-row:
/
justify-self:
align-self:
body { display: grid grid-template-columns: repeat(10, 1fr) grid-template-rows: repeat(10, 1fr) } header { grid-column: grid-row: } main { } aside { } footer { }
nav { }
Looking for help?
Go to the Grid tutorial!
Tips
.wrapper {
display: grid
grid-template-columns:
grid-template-rows:
grid-auto-flow:
grid-gap:
justify-items:
align-items:
}
.grid-item {
grid-row: < row-start > / < row-end >
grid-column: < column-start > / < column-end >
align-self: < stretch / start / end / center >
justify-self: < stretch / start / end / center >
}
body {}
selector that we've established a 10x10 grid. Go ahead and click the 'Toggle Grid View' button to see.
Your job is to change the column and row start and end positions of each element to layout the page!
Tips
New lessons are added all the time, be sure to check back!
For now, checkout my site for more useful tools!
Back to the Playground!