<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CSS Grid on Nalar</title>
    <link>https://nalar.dev/tags/css-grid/</link>
    <description>Recent content in CSS Grid on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 01 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/css-grid/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Use CSS Subgrid to Align Nested Components</title>
      <link>https://nalar.dev/css-subgrid-align-nested-components/</link>
      <pubDate>Tue, 01 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/css-subgrid-align-nested-components/</guid>
      <description>&lt;p&gt;CSS Grid normally creates an independent track system for every grid container. That isolation is useful until nested components need to align with columns or rows defined by an ancestor. &lt;code&gt;subgrid&lt;/code&gt; lets a nested grid reuse those tracks instead of guessing their sizes.&lt;/p&gt;&#xA;&lt;p&gt;Modern evergreen browsers support subgrid, making it practical for production layouts where cross-component alignment matters.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-problem-with-independent-nested-grids&#34;&gt;The problem with independent nested grids&lt;/h2&gt;&#xA;&lt;p&gt;Consider a product list where every card contains a title, description, price, and action. If each card uses its own rows, the buttons move vertically when descriptions have different lengths.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
