Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
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 | |
|---|---|---|
| 1nav { display: flex; justify-content: space-between; align-items: center; } | Afooter { display: flex; justify-content: center; } | |
| 2.card { align-self: flex-end; } | BItems are spread evenly along the main axis with no edge gaps, and centred vertically on the cross axis | |
| 3justify-content controls spacing and alignment along the main axis | C'middle' is not a valid align-items value — use align-items: center; to centre on the cross axis | |
| 4align-items aligns all flex items on the cross axis — overridden per item by align-self | DCSS uses American English spelling — the correct value is justify-content: center; not centre; | |
| 5div { align-items: middle; } | Ediv { display: flex; align-items: flex-start; } | |
| 6div { justify-content: centre; } | FOverrides the container's align-items for this one card — positions it at the end of the cross axis |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
align-items — A CSS flexbox property on the container that aligns all flex items along the cross axis (perpendicular to flex-direction). Values: stretch, center, flex-start, flex-end.nav { display: flex; align-items: center; }div { display: flex; align-items: center; }nav { justify-content: space-between; }div { align-self: flex-end; }nav { justify-content: space-between; }