0
0
Tailwindmarkup~5 mins

Flex direction control in Tailwind - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Aflex-col-reverse
Bflex-col
Cflex-row-reverse
Dflex-row
What does flex-col do to flex items?
AStacks items vertically from top to bottom
BStacks items vertically from bottom to top
CArranges items horizontally from right to left
DArranges items horizontally from left to right
If you want items to appear horizontally but in reverse order, which class do you use?
Aflex-col
Bflex-row-reverse
Cflex-col-reverse
Dflex-row
Which flex direction stacks items vertically from bottom to top?
Aflex-col-reverse
Bflex-row
Cflex-row-reverse
Dflex-col
Why is changing flex direction useful in web design?
ATo add animations
BTo change colors of items
CTo control item arrangement for different screen sizes
DTo increase font size
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.