Build a responsive page shell with CSS Grid and a flex fallback
Use CSS Grid for a two-dimensional page shell, wrap it in @supports, and verify placement with the browser grid overlay.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use CSS Grid for a two-dimensional page shell, wrap it in @supports, and verify placement with the browser grid overlay.
Container Queries let UI components respond to their parent's size instead of the viewport. This post shows how to opt in with container-type, a worked card example that flips layout at 350px, and the performance and stacking-context trade-offs you'll hit in production.
CSS Container Queries let components respond to their container instead of the viewport. Covers syntax, a worked example with fluid typography and theme-aware styling, and trade-offs: containment cost, Firefox unit gaps, and a migration path keeping media queries for page layout.
Use CSS Grid with subgrid for true two-dimensional layouts with independent nested alignment, and verify browser support before shipping.
Learn how to set up a practical CSS Grid layout, understand its browser limits, avoid common mistakes like over‑nesting or confusing it with Flexbox, and verify the result with DevTools and compatibility tables.
Use repeat(auto-fit, minmax()) and fr units to build card grids that reflow automatically, with a flexbox fallback for older browsers.
Learn how CSS custom properties let you change colors, spacing, and other design tokens at runtime—no stylesheet swap or page reload required.
Learn when to use CSS Grid versus Flexbox for web architecture. This guide compares 2D vs 1D layouts and provides a hybrid implementation for scalable page shells.
Learn how to declare a CSS grid, place items with line‑based syntax, and avoid common mistakes such as overflow from fr units or unexpected auto‑placement.