Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This CSS Grid placement worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1.item { grid-column: 1 / 4; } | A.item { grid-column: 1 / -1; } | |
| 2.item { grid-row: 2 / span 2; } | B.item { grid-area: 1 / 2 / 3 / 5; } | |
| 3Stretches a layout block completely from the first column line to the last grid edge. | CTreating the span layout keyword as if it were a function call with parentheses. | |
| 4Consolidates all row and column boundaries cleanly within a single instruction rule. | DPlaces an item spanning from column line 1 up to column line 4. | |
| 5.item { grid-column: 1, 3; } | EStarts an item at row line 2 and stretches it across 2 row tracks. | |
| 6.item { grid-row: span(2); } | FSeparating grid placement boundaries with a comma instead of a forward slash. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
grid-column — Shorthand property that specifies a grid item's size and location within the grid columns by defining its start and end lines..item-a {
grid-column: 1 / 3;
}.item-b {
grid-row: 2 / 5;
}.sidebar {
grid-column: 1 / span 2;
}.header {
grid-area: 1 / 1 / 2 / 5;
}.footer {
grid-column: 1 / -1;
}