Bird
0
0

In a responsive WordPress theme, what is the effect of this CSS?

medium📝 component behavior Q5 of 15
Wordpress - Custom Theme Development
In a responsive WordPress theme, what is the effect of this CSS?
.container { display: flex; flex-wrap: wrap; }
AItems stack vertically without wrapping
BItems wrap to next line on small screens
CItems overlap each other
DItems disappear on small screens
Step-by-Step Solution
Solution:
  1. Step 1: Understand flex-wrap property

    flex-wrap: wrap allows flex items to move to next line if needed.
  2. Step 2: Apply to responsive context

    On small screens, items wrap instead of shrinking or overlapping.
  3. Final Answer:

    Items wrap to next line on small screens -> Option B
  4. Quick Check:

    flex-wrap: wrap enables wrapping [OK]
Quick Trick: flex-wrap: wrap prevents item overlap on narrow screens [OK]
Common Mistakes:
  • Assuming vertical stacking without wrap
  • Thinking items overlap
  • Believing items disappear

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes