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; flex-direction: row; gap: 16px; } | ASpreads items evenly along the main axis with no edge gaps, and centres them on the cross axis | |
| 2div { display: flex; justify-content: space-between; align-items: center; } | Bnav { display: flex; flex-wrap: wrap; } | |
| 3display: flex turns an element into a flex container — its direct children become flex items | Csection { display: flex; flex-direction: column; } | |
| 4flex-wrap: wrap allows flex items to flow onto new lines when space runs out | DCSS uses American English spelling — the correct value is justify-content: center; not centre; | |
| 5nav { display: flexbox; } | E'flexbox' is not a valid display value — use display: flex; to create a flex container | |
| 6div { justify-content: centre; } | FCreates a horizontal flex container with 16px gaps between each child item |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
display: flex — Turns an element into a flex container. Its direct children become flex items that can be arranged, aligned and spaced using flex properties.nav { display: flex; }div { flex-direction: row; }div { flex-direction: row; }nav { display: flex; flex-wrap: wrap; }nav { justify-content: center; }