CSS Bug Hunt Easy +10 XP
Flexbox Direction
Items should be in a row but they stack vertically.
CSSFind the bug
1
.container {2
display: flex;3
flex-direction: column;4
} The bug is on line 3
Select the correct fix
Show answer and explanation
Answer: Change column to row
flex-direction: column stacks items vertically. Use row (the default) to arrange them horizontally.
Hint: row vs column changes the axis.
What this challenge tests
Bug Hunt in CSS: flexbox, layout.