{"id":3442,"date":"2026-11-28T16:14:08","date_gmt":"2026-11-28T16:14:08","guid":{"rendered":"https:\/\/danieldavidreitberg.com\/?p=3442"},"modified":"2026-11-28T16:14:08","modified_gmt":"2026-11-28T16:14:08","slug":"dr-ai-14095bc98a960a7988a2","status":"publish","type":"post","link":"https:\/\/danieldavidreitberg.com\/index.php\/2026\/11\/28\/dr-ai-14095bc98a960a7988a2\/","title":{"rendered":"Align Editorial Card Details to Shared Grid Tracks"},"content":{"rendered":"<p>Put a short headline and a three-line headline side by side and it is easy for the metadata and links underneath to fall out of alignment. Giving every title the same fixed height is a tempting shortcut, but it makes longer titles and zoomed text harder to accommodate. A shared row can solve the alignment problem without trimming the story\u2019s actual headline.<\/p>\n<p>Reference: <a href=\"https:\/\/www.w3.org\/TR\/css-grid-2\/#subgrids\">W3C CSS Grid subgrids<\/a>. CSS Grid defines how a subgrid adopts the parent\u2019s tracks in a subgridded dimension.<\/p>\n<h2>Align to Parent Tracks<\/h2>\n<p>For a group of adjacent cards, let each card span the corresponding number of parent grid rows and use <code>grid-template-rows: subgrid<\/code> on the cards. If each card has a heading, a description and a link, that means a span of three rows. The heading track can grow to fit the longest heading in that group rather than having its height guessed in advance. Keep the card\u2019s markup in its intended reading order.<\/p>\n<h2>Test Alignment Consistency<\/h2>\n<p>Test with a one-line title, a long title, and a longer description in the third card. At the wider breakpoint, look for the second sections to start at the same grid line within each group. At the single-column breakpoint, check whether the cards remain easy to scan without large empty bands. Repeat with text enlarged and follow the links by keyboard so visual alignment does not hide a confusing focus sequence.<\/p>\n<p>Use a self-contained card layout as the fallback where subgrid is unavailable; aligned baselines are an enhancement, not a prerequisite for reading or opening a story. Also test a card with missing optional content, since automatic placement can shift its action into a different row unless the design accounts for it. The finish line is not a perfectly even screenshot. It is an editorial card that stays readable when the content or viewing conditions change.<\/p>\n<p><!-- drai-run:14095bc98a960a7988a2 --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cards can share a row boundary and still need readable content order.<\/p>\n","protected":false},"author":4,"featured_media":3443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/posts\/3442"}],"collection":[{"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/comments?post=3442"}],"version-history":[{"count":1,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/posts\/3442\/revisions"}],"predecessor-version":[{"id":3444,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/posts\/3442\/revisions\/3444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/media\/3443"}],"wp:attachment":[{"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/media?parent=3442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/categories?post=3442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danieldavidreitberg.com\/index.php\/wp-json\/wp\/v2\/tags?post=3442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}