What's new in responsive design
summary
New CSS layout tools shift responsive design from viewport breakpoints to component-aware rules: container queries in Firefox nightly let components adapt to their wrapper size via container-type:inline-size and named containers, and subgrid in Safari and Firefox lets inner elements inherit parent track sizing (Chrome support coming). Use at-container with min-width 600px to toggle subgrid, apply prefers-reduced-motion and pointer/hover media features for user preferences, and prefer fit-content/min/max content and FR units for flexible grids.
AI-written summary · about
chapters (12)
- 0:00Introduction to responsive design
- 2:12Flexbox and content-based layouts
- 6:11CSS Grid for responsive grids
- 9:25Grid content sizing behavior
- 13:40Min/Max content and fit-content
- 16:14Reducing media query reliance
- 19:28Media queries level 4 features
- 24:23Container queries explained
- 26:29Subgrid for nested layouts
- 28:57Has selector for dynamic styling
- 31:12Modern responsive design approach
- 34:21Conclusion and Q&A
