0
0
CSSmarkup~5 mins

Flex wrap in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS property flex-wrap do?

The flex-wrap property controls whether flex items stay on one line or wrap onto multiple lines inside a flex container.

Click to reveal answer
beginner
What are the possible values of flex-wrap?
  • nowrap: All items stay on one line (default).
  • wrap: Items wrap onto multiple lines, from top to bottom.
  • wrap-reverse: Items wrap onto multiple lines, but in reverse order (bottom to top).
Click to reveal answer
intermediate
How does flex-wrap: wrap help in responsive design?

It allows items to move to the next line when there is not enough space, so the layout adapts nicely on smaller screens without overflowing.

Click to reveal answer
beginner
What is the default value of flex-wrap and what does it mean?

The default is nowrap, which means all flex items stay on a single line and may shrink to fit.

Click to reveal answer
intermediate
How do you combine flex-wrap with flex-direction to control layout?

flex-wrap controls line wrapping, while flex-direction controls the main axis direction. Together, they define how items flow and wrap inside the container.

Click to reveal answer
What happens if you set flex-wrap: nowrap on a flex container?
AFlex items wrap onto multiple lines.
BFlex items stay on one line and may shrink to fit.
CFlex items disappear.
DFlex items stack vertically.
Which flex-wrap value makes items wrap in reverse order?
Awrap
Bnowrap
Cwrap-reverse
Dreverse-wrap
Why is flex-wrap: wrap useful for mobile screens?
AIt hides items on small screens.
BIt forces items to stay in one line.
CIt changes item colors.
DIt allows items to move to next line to avoid overflow.
If you want flex items to never wrap, which value do you use?
Anowrap
Bwrap
Cwrap-reverse
Dno-wrap
Which two properties work together to control flex item layout and wrapping?
Aflex-direction and flex-wrap
Bflex-grow and flex-shrink
Cjustify-content and align-items
Dmargin and padding
Explain how the flex-wrap property affects the layout of flex items inside a container.
Think about whether items stay in one line or move to new lines.
You got /4 concepts.
    Describe a real-life example where using flex-wrap: wrap improves the user experience on a website.
    Imagine a row of buttons or images on a phone screen.
    You got /4 concepts.