Recall & Review
beginner
What does the <code>flex-row</code> class do in Tailwind CSS?It sets the flex container's main axis to horizontal, arranging child elements side by side from left to right.
Click to reveal answer
beginner
How does
flex-col affect the layout of flex items?It changes the flex direction to vertical, stacking child elements from top to bottom.
Click to reveal answer
intermediate
What is the difference between
flex-row-reverse and flex-col-reverse?flex-row-reverse arranges items horizontally but in reverse order (right to left). <br>flex-col-reverse stacks items vertically but from bottom to top.Click to reveal answer
beginner
Why is controlling flex direction important in responsive design?
It lets you change how items are arranged on different screen sizes, making layouts adapt nicely for phones, tablets, and desktops.
Click to reveal answer
beginner
Which Tailwind class would you use to stack items vertically but reverse their order?Use
flex-col-reverse to stack items vertically from bottom to top.Click to reveal answer
Which Tailwind class arranges flex items horizontally from left to right?
✗ Incorrect
flex-row sets the flex direction horizontally in normal order.What does
flex-col do to flex items?✗ Incorrect
flex-col stacks items vertically in normal order.If you want items to appear horizontally but in reverse order, which class do you use?
✗ Incorrect
flex-row-reverse arranges items horizontally but reversed.Which flex direction stacks items vertically from bottom to top?
✗ Incorrect
flex-col-reverse stacks items vertically but reversed.Why is changing flex direction useful in web design?
✗ Incorrect
Changing flex direction helps layouts adapt to different screen sizes.
Explain how
flex-row and flex-col differ in arranging items.Think about rows vs columns in a table.
You got /4 concepts.
Describe a scenario where using
flex-col-reverse would be helpful in a responsive design.Consider how order matters on small devices.
You got /4 concepts.