# subgrid

Published articles for subgrid.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Rebuilding FIFA Standings Layout with CSS Subgrid

DevFeed: [Rebuilding FIFA Standings Layout with CSS Subgrid](<https://devfeed.tech/articles/rebuilding-fifa-standings-layout-with-css-subgrid-45320.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/fifa-layout/>)

Author: Ahmad Shadeed

Published: 2026-07-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [layout](<https://devfeed.tech/topics/layout.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [css-grid](<https://devfeed.tech/tags/css-grid.md>), [devtools](<https://devfeed.tech/tags/devtools.md>), [grid](<https://devfeed.tech/tags/grid.md>), [layout](<https://devfeed.tech/tags/layout.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

### AI overview

A tutorial on rebuilding the FIFA standings layout with CSS Grid and CSS subgrid. It explains how to structure the markup and position nested rounds across responsive layouts, while noting that the approach is a suggestion and does not cover animations or hover effects.

### Source excerpt

A look at how to rebuild the FIFA standings layout by using CSS grid, subgrid, and more.

## Brand New Layouts with CSS Subgrid

DevFeed: [Brand New Layouts with CSS Subgrid](<https://devfeed.tech/articles/brand-new-layouts-with-css-subgrid-45210.md>)

Original publisher: [Read original article](<https://www.joshwcomeau.com/css/subgrid/>)

Author: Josh W. Comeau

Published: 2025-11-25T12:00:00Z

Content type: tutorial

Language: en

Sources: [Josh Comeau's blog](<https://devfeed.tech/sources/josh-comeau-s-blog.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [layout](<https://devfeed.tech/topics/layout.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [css-grid](<https://devfeed.tech/tags/css-grid.md>), [devtools](<https://devfeed.tech/tags/devtools.md>), [gotchas](<https://devfeed.tech/tags/gotchas.md>), [grid](<https://devfeed.tech/tags/grid.md>), [grid-layout](<https://devfeed.tech/tags/grid-layout.md>), [html](<https://devfeed.tech/tags/html.md>), [layouts](<https://devfeed.tech/tags/layouts.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

### AI overview

A tutorial explaining how CSS Subgrid extends grid layouts through the DOM tree, enabling deeply nested elements to participate in a shared layout. It covers the fundamentals, implementation mechanics, semantic markup, DevTools inspection, and common gotchas.

### Source excerpt

Subgrid allows us to extend a grid template down through the DOM tree, so that deeply-nested elements can participate in the same grid layout. At first glance, I thought this would be a helpful convenience, but it turns out that it's so much more. Subgrid unlocks exciting new layout possibilities, stuff we couldn't do until now. ✨

## Rebuilding a comment component with modern CSS

DevFeed: [Rebuilding a comment component with modern CSS](<https://devfeed.tech/articles/rebuilding-a-comment-component-with-modern-css-45267.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/comment-component/>)

Author: Ahmad Shadeed

Published: 2023-06-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [layout](<https://devfeed.tech/topics/layout.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [comment](<https://devfeed.tech/tags/comment.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [flexbox](<https://devfeed.tech/tags/flexbox.md>), [has](<https://devfeed.tech/tags/has.md>), [html](<https://devfeed.tech/tags/html.md>), [layout](<https://devfeed.tech/tags/layout.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

### AI overview

A tutorial on rebuilding a nested comment component layout with modern CSS. It explores HTML list structure, indentation and spacing, and CSS features including flexbox, container queries, style queries, :has, and subgrid.

### Source excerpt

Building a comment component with modern CSS like flexbox, logical properites, :has, style queries, and subgrid.

## CSS Style Queries

DevFeed: [CSS Style Queries](<https://devfeed.tech/articles/css-style-queries-45282.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/css-container-style-queries/>)

Author: Ahmad Shadeed

Published: 2022-12-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web platform](<https://devfeed.tech/topics/web-platform.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [border-image](<https://devfeed.tech/topics/border-image.md>)

Tags: [browsers](<https://devfeed.tech/tags/browsers.md>), [canary](<https://devfeed.tech/tags/canary.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [component](<https://devfeed.tech/tags/component.md>), [container](<https://devfeed.tech/tags/container.md>), [css](<https://devfeed.tech/tags/css.md>), [css-variables](<https://devfeed.tech/tags/css-variables.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [queries](<https://devfeed.tech/tags/queries.md>), [query](<https://devfeed.tech/tags/query.md>), [selector](<https://devfeed.tech/tags/selector.md>), [style](<https://devfeed.tech/tags/style.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

### AI overview

This tutorial explains CSS style queries, which query a container's CSS property or variable instead of its size. It describes their experimental implementation in Chrome Canary and contrasts them with container size queries.

### Source excerpt

For me, 2022 is the best year ever for CSS. We got a lot of new stuff supported in stable browsers and it's just like living a dream. From CSS subgrid, :has selector, container queries, and the new viewport units. So many things to grasp, I understand - but I'm sure we agree that this is exciting, isn't it? Recently, the Chrome team released experimental support for a new proposed CSS spec, style queries. In short, they let us query the style of a container, rather than the size only.

## Day 7: subgrids

DevFeed: [Day 7: subgrids](<https://devfeed.tech/articles/day-7-subgrids-52241.md>)

Original publisher: [Read original article](<https://www.matuzo.at/blog/2022/100daysof-day7>)

Author: Manuel Matuzović

Published: 2022-10-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Manuel Matuzović](<https://devfeed.tech/sources/manuel-matuzovic-blog.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [grid](<https://devfeed.tech/tags/grid.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [my-blog](<https://devfeed.tech/tags/my-blog.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>), [web-browser](<https://devfeed.tech/tags/web-browser.md>)

### AI overview

A tutorial on CSS Subgrid, explaining how a nested grid can align its items with the tracks of a parent grid. It includes CSS examples and notes browser support for Firefox 71+ and Safari 16+.

### Source excerpt

Subgrid allows a grid-item with its own grid to align with its parent grid (currently only in Firefox 71+ and Safari 16+). In the following example, the div elements use the grid defined in the dl element. The result is that all the dt and dd elements are aligned in the same "columns" respectively, even though they're not on the same level in the DOM. <dl> <div> <dt>HTML</dt> <dd>The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser.</dd> </div> <div> <dt>JavaScript</dt> <dd>JavaScript often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS</dd> </div> </dl> dl { display: grid; gap: 0.5rem 2rem; grid-template-columns: auto 1fr; } div { display: inherit; grid-column: 1 / -1; grid-template-columns: subgrid; } HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. JavaScript JavaScript often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS Both columns are neatly aligned in the same grid. To make it a bit more obvious, here's how the same grid looks like if you don't use subgrid but copy the grid-template-columns declaration from the dl and use it on the div. dl { display: grid; gap: 0.5rem 2rem; grid-template-columns: auto 1fr; } div { display: inherit; gap: inherit; grid-column: 1 / -1; grid-template-columns: auto 1fr; } HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. JavaScript JavaScript often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS The width of each element differs because each div forms its own grid. My blog doesn't support comments yet, but you can reply via blog@matuzo.at.

## Learn CSS Subgrid

DevFeed: [Learn CSS Subgrid](<https://devfeed.tech/articles/learn-css-subgrid-45347.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/learn-css-subgrid/>)

Author: Ahmad Shadeed

Published: 2022-05-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [layout](<https://devfeed.tech/topics/layout.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [browser-support](<https://devfeed.tech/tags/browser-support.md>), [css](<https://devfeed.tech/tags/css.md>), [css-grid](<https://devfeed.tech/tags/css-grid.md>), [examples](<https://devfeed.tech/tags/examples.md>), [grid](<https://devfeed.tech/tags/grid.md>), [here](<https://devfeed.tech/tags/here.md>), [layout](<https://devfeed.tech/tags/layout.md>), [nested](<https://devfeed.tech/tags/nested.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>)

### AI overview

A deep dive into CSS Subgrid, explaining the alignment problem it solves, how inherited grid rows and columns work, browser support, and practical layout examples.

### Source excerpt

A deep-dive into the new CSS subgrid feature with real-life examples and use-cases.