Skip to content
DevDepth

Tag: css-grid

10 items under this tag.

Topic Filter

Browse by tag

79 tags

Showing the most-used tags first so the archive stays easy to scan. Click a tag to browse only that topic.

All Content

Current tag

css-grid10
Popular tags stay visible first.
5 min readcss-gridCss Layout / Grid

CSS Grid Fundamentals: Track Sizing, `fr`, `repeat()`, `minmax()`, and the Core Functions That Matter

Learn how CSS Grid defines explicit and implicit tracks, how `fr` space is resolved, and how functions like `repeat()` and `minmax()` make layouts resilient.

4 min readcss-gridCss Layout / Grid

CSS Grid Layout Patterns: Classic App Structures, Editorial Composition, and Creative Two-Dimensional Layouts

Use CSS Grid for the layout patterns Flexbox cannot express cleanly, from app shells and holy grail pages to editorial heroes and layered visual compositions.

4 min readcss-gridCss Layout / Grid

CSS Grid Placement, Overlap, and Alignment: How Items Actually Land Where You Expect

Learn when to rely on auto-placement, when to place items by line, and how Grid alignment differs from Flexbox when rows and columns both matter.

4 min readlayout-strategyCss Layout / Strategy

Flexbox vs Grid: A Practical Decision Guide for Real Layout Work

Choose between Flexbox and Grid based on axis, placement, source order, and component responsibility instead of repeating the vague one-dimensional versus two-dimensional slogan.

7 min readlayout-strategyCss Layout / Strategy

How to Fix Scroll Failures and Stretched UI in Flexbox and Grid

Use `min-height: 0`, inner scroll wrappers, auto margins, non-stretch alignment, and `flex-shrink: 0` to prevent broken scrolling and distorted UI in Flexbox and Grid.

7 min readlayout-strategyCss Layout / Strategy

How to Prevent Overflow in Flexbox and Grid Layouts

Use `flex-wrap`, content-aware Flexbox sizing, and Grid RAM patterns with `repeat(auto-fit, minmax())` to prevent broken layouts and horizontal overflow.

4 min readcss-gridCss Layout / Grid

Subgrid and Nested Grid Layouts: When Child Components Should Inherit the Parent's Spatial Logic

Understand the difference between nested grids and subgrid, why subgrid improves alignment, and where it pays off in cards, forms, timelines, and editorial layouts.

3 min readlayout-strategyCss Layout / Strategy

What `display: contents` Actually Does in Flexbox and Grid Layouts

Understand when `display: contents` helps flatten wrappers for layout participation, where it creates tradeoffs, and why it is not a universal replacement for subgrid.

7 min readlayout-strategyCss Layout / Strategy

Why `min-width: 0` Fixes So Many Flexbox and Grid Layout Bugs

Learn how automatic minimum size and `min-content` cause `flex: 1`, `1fr`, long words, and scrollable components to overflow, and when to use `min-width: 0`, `overflow: hidden`, or `minmax(0, 1fr)`.