flex-col-reverse stacks items vertically but reverses order from bottom to top.
Step 2: Determine visual order of items
Original order top to bottom is Item 1, 2, 3; reversed is Item 3, 2, 1 top to bottom.
Final Answer:
Item 3, Item 2, Item 1 (top to bottom) -> Option A
Quick Check:
flex-col-reverse reverses vertical order [OK]
Hint: Reverse vertical means last item appears first [OK]
Common Mistakes:
Thinking reverse affects horizontal order
Assuming order stays original
Confusing flex-col with flex-row
5. You want a flex container that stacks items vertically but shows the last item at the top and the first item at the bottom. Which Tailwind class should you use?
hard
A. flex-col
B. flex-col-reverse
C. flex-row
D. flex-row-reverse
Solution
Step 1: Understand vertical stacking requirement
Stacking vertically means using flex-col or its reverse.
Step 2: Reverse order to show last item first
To show last item at top, use flex-col-reverse which reverses vertical order.