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 | |
|---|---|---|
| 1.child { position: absolute; top: 0; right: 0; } | ACSS declarations require a colon — it should be position: absolute; not position absolute; | |
| 2nav { position: fixed; top: 0; width: 100%; } | Bheader { position: sticky; top: 0; } | |
| 3position: relative offsets an element without removing it from normal flow | C.box { position: relative; top: 10px; left: 20px; } | |
| 4position: sticky behaves like relative until a scroll threshold is reached, then sticks | DThere must be no space between the number and unit — write top: 10px; not top: 10 px; | |
| 5div { position absolute; } | ERemoved from normal flow and anchored to the top-right corner of its nearest positioned ancestor | |
| 6p { position: relative; top: 10 px; } | FFixed to the top of the viewport — stays visible as the page scrolls; does not move with content |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
position — A CSS property that sets how an element is positioned. Values: static (default), relative, absolute, fixed or sticky. Offset properties (top, right, bottom, left) take effect on non-static elements.div { position: relative; }p { position: absolute; }nav { position: fixed; top: 0; }header { position: sticky; top: 0; }div { position: absolute; top: 20px; }