Position — Quiz

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
Which value keeps the element in the flow but lets you nudge it with top/left?
A static
B relative
C absolute
D fixed
Question 2
An absolute element is positioned relative to…
A The browser window always
B Its nearest positioned ancestor
C The previous element
D The bottom of the page
Question 3
Which value pins an element to the browser window even while scrolling?
A relative
B fixed
C static
D absolute
Question 4
What does position: sticky do?
A Glues the element to the page forever
B Scrolls normally until a set point, then sticks there
C Removes the element from flow
D Hides the element
Question 5
Your absolutely-positioned badge jumped to the page corner instead of the card. Why?
A z-index is too low
B The card isn't a positioned ancestor (needs position: relative)
C Absolute doesn't work in cards
D You forgot a width