Recall & Review
beginner
What problem does Flexbox solve in web layouts?
Flexbox helps arrange items in a container so they can adjust their size and position automatically, making layouts flexible and easier to manage on different screen sizes.
Click to reveal answer
beginner
How does Flexbox improve responsive design?
Flexbox allows items to grow, shrink, or wrap to new lines depending on the screen size, so the layout adapts smoothly without breaking or overlapping.
Click to reveal answer
intermediate
Why was using floats or positioning not ideal before Flexbox?
Floats and positioning required extra work and tricks to align items properly, often causing layout bugs and making it hard to center or evenly space elements.
Click to reveal answer
beginner
What is the main benefit of Flexbox compared to older layout methods?
Flexbox simplifies alignment and distribution of space among items in a container, making it easier to build complex layouts with less code.
Click to reveal answer
beginner
Name a real-life example where Flexbox helps in web design.
Creating a navigation bar where menu items stay evenly spaced and adjust nicely on small or large screens without overlapping or leaving big gaps.
Click to reveal answer
What does Flexbox primarily help with in CSS?
✗ Incorrect
Flexbox is designed to arrange items flexibly inside a container, adjusting their size and position automatically.
Before Flexbox, which CSS method was commonly used but tricky for layouts?
✗ Incorrect
Floats were used for layouts but often caused problems with alignment and spacing.
Which Flexbox feature helps items wrap to new lines on small screens?
✗ Incorrect
The flex-wrap property allows flex items to move to the next line when needed.
Flexbox makes it easier to do which of the following?
✗ Incorrect
Flexbox simplifies centering items both horizontally and vertically inside a container.
Which of these is NOT a benefit of Flexbox?
✗ Incorrect
Flexbox does not optimize images; it focuses on layout and alignment.
Explain why Flexbox is needed in modern web design.
Think about how websites look good on phones and computers.
You got /4 concepts.
Describe a situation where using Flexbox improves the layout compared to older CSS techniques.
Imagine a menu bar that looks good on both desktop and mobile.
You got /4 concepts.