1. Which is a pillar of responsive design?
- Fixed widths only
- Flexible grid
- Desktop-first approach
- Pixel-perfect desktop mockups
Show answer
Answer: Flexible grid
Flexible grid using %, em, rem is a core pillar.
Lesson: What is responsive design?
18 questions from the Responsive and Mobile-First Web Design course, each with the correct answer and an explanation. Try to answer before you open the answer.
Answer: Flexible grid
Flexible grid using %, em, rem is a core pillar.
Lesson: What is responsive design?
Answer: Apply when screen is 768px or wider
`min-width: 768px` means "768px and above" — a lower bound.
Lesson: CSS media queries
Answer: Content
Content-driven breakpoints work for any device, known or unknown.
Lesson: Breakpoints strategy
Answer: They're invisible on touch screens
Touch devices don't have hover state.
Lesson: Touch interactions
Answer: Ensures columns are at least 280px, grow to fill space
minmax() sets both minimum and maximum values for flexible sizing.
Lesson: CSS Grid responsive
Answer: Components adapt to their container, not viewport
Container queries make reusable components that adapt anywhere.
Lesson: Container queries
Answer: prefers-reduced-motion
prefers-reduced-motion: reduce reflects the OS reduce-motion setting.
Lesson: User preference media queries
Answer: 44x44px
44x44px (Apple guideline) or 48x48px (Android) is recommended.
Lesson: Accessibility for mobile
Answer: viewport
The viewport meta tag stops mobile browsers from assuming a desktop width.
Lesson: Cheatsheet & Interview Q&A
Answer: min-width
Base styles target mobile, and min-width layers on larger screens.
Lesson: Cheatsheet & Interview Q&A
Answer: Scales smoothly between a minimum and maximum
The value follows the preferred size but never leaves the min and max.
Lesson: Cheatsheet & Interview Q&A
Answer: repeat(auto-fit, minmax(280px, 1fr))
auto-fit with minmax wraps columns as space allows.
Lesson: Cheatsheet & Interview Q&A
Answer: Their container's width
The same component adapts to wherever it is placed.
Lesson: Cheatsheet & Interview Q&A
Answer: srcset
srcset with sizes lets the browser download the right resolution.
Lesson: Cheatsheet & Interview Q&A
Answer: 44x44px
Larger targets prevent mis-taps on touch screens.
Lesson: Cheatsheet & Interview Q&A
Answer: CLS
CLS drops when images and ads reserve space with width, height or aspect-ratio.
Lesson: Cheatsheet & Interview Q&A
Answer: Fixed-width containers
Fixed-width containers lock layouts to one size — the opposite of responsive design. Use flexible widths instead.
Lesson: Responsive design recap
Answer: Simpler CSS, forces prioritization, better performance
Mobile-first CSS is cleaner, and you add complexity only when needed.
Lesson: Responsive design recap