<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno" -->

---
title: CSS is filling the gaps with rules. A way to style gaps...
description: CSS is gaining native support for styling the gaps between grid and flex items through an extended column-rule property plus a new row-rule counterpart. The...
canonical: https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CSS is filling the gaps with rules. A way to style gaps in grid and flex. | daily.dev
og:description: CSS is gaining native support for styling the gaps between grid and flex items through an extended column-rule property plus a new row-rule counterpart. The...
og:url: https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno
og:image: https://api.daily.dev/og/posts/F4xPf1vNO.png
og:image:alt: CSS is filling the gaps with rules. A way to style gaps in grid and flex.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CSS is filling the gaps with rules. A way to style gaps in grid and flex.

**[utilitybend](https://daily.dev/sources/utilitybend)** · 8 min read · 0 upvotes · 0 comments

## Summary

CSS is gaining native support for styling the gaps between grid and flex items through an extended column-rule property plus a new row-rule counterpart. The walkthrough covers longhand and shorthand syntax, using repeat() for alternating rule styles, junction behavior via rule-break, inset controls (rule-inset, rule-inset-cap, rule-inset-junction), overlap ordering with rule-overlap, conditional visibility with rule-visibility-items, and full animatability of these properties including scroll-driven animations. Several practical demos are shown: a postcard shelf, a festival lineup poster, and a scroll-driven type animation, along with a progressive-enhancement pattern using @supports. The feature is set to ship in the next Chrome release and is already available in Safari Technology Preview.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex>

## Questions this post answers

### How do I add a visible line between grid or flex items using CSS without extra markup?

Use the extended column-rule property (and its new row-rule counterpart) directly on the grid or flex container, for example column-rule: 3px solid oklch(58% 0.22 25) combined with gap: 20px. This draws lines in the gaps between items without adding pseudo-elements or borders on child elements. The feature is shipping in the next Chrome release and is already available in Safari Technology Preview.

_daily.dev surfaces new CSS layout capabilities like this as browsers roll them out._

### What does the CSS rule-break property do for grid gap lines?

rule-break controls what happens where row and column gap decorations intersect. Setting it to normal uses default layout-dependent behavior, none lets rules run straight through crossings, and intersection makes rules stop and break at the crossing point, which tends to look cleaner for interface grids while none gives a bolder, continuous look.

_developers experimenting with new CSS grid decorations can track browser support details on daily.dev._

### How can I make gap dividers only appear between actual grid items and not in empty cells?

Set rule-visibility-items to between, which shows a rule only when two adjacent items on both sides of the gap are present. Other values include normal (default), all (rules appear in every gap, even empty ones), and around (rules appear wherever at least one adjacent item exists), useful when structural lines are wanted even in empty cells.

_daily.dev helps developers keep up with granular CSS controls like this as they land in browsers._

## Similar posts on daily.dev

- [Gap Decorations Are Now Available, Here’s What’s New](https://daily.dev/posts/gap-decorations-are-now-available-here-s-what-s-new-8ahsqtdo9) · CSS-Tricks · 24 upvotes · 0 comments
- [Gap decorations: Now available in Chromium](https://daily.dev/posts/gap-decorations-now-available-in-chromium-x5qkzadan) · Chrome Developers · 69 upvotes · 3 comments
- [Let’s Play With Gap Decorations\! – Master.dev Blog](https://daily.dev/posts/let-s-play-with-gap-decorations-master-dev-blog-jdy3kct2r) · Frontend Masters · 20 upvotes · 1 comments
- [Introducing CSS Grid Lanes](https://daily.dev/posts/introducing-css-grid-lanes-6uomjvxlc) · Hacker News · 27 upvotes · 1 comments

---

Tags: [#css](https://daily.dev/tags/css), [#chromium](https://daily.dev/tags/chromium), [#web-animation](https://daily.dev/tags/web-animation)

[View this post on daily.dev](https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CSS is filling the gaps with rules. A way to style gaps in grid and flex.","url":"https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno"},"datePublished":"2026-09-20T07:43:37.212Z","dateModified":"2026-09-20T07:47:21.263Z","description":"CSS is gaining native support for styling the gaps between grid and flex items through an extended column-rule property plus a new row-rule counterpart. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2f7cce5ee11d6b95994e4dd422ed61cf?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2f7cce5ee11d6b95994e4dd422ed61cf?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,chromium,web-animation","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"CSS is filling the gaps with rules. A way to style gaps in grid and flex."}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/css-is-filling-the-gaps-with-rules-a-way-to-style-gaps-in-grid-and-flex--f4xpf1vno#faq","mainEntity":[{"@type":"Question","name":"How do I add a visible line between grid or flex items using CSS without extra markup?","acceptedAnswer":{"@type":"Answer","text":"Use the extended column-rule property (and its new row-rule counterpart) directly on the grid or flex container, for example column-rule: 3px solid oklch(58% 0.22 25) combined with gap: 20px. This draws lines in the gaps between items without adding pseudo-elements or borders on child elements. The feature is shipping in the next Chrome release and is already available in Safari Technology Preview. daily.dev surfaces new CSS layout capabilities like this as browsers roll them out."}},{"@type":"Question","name":"What does the CSS rule-break property do for grid gap lines?","acceptedAnswer":{"@type":"Answer","text":"rule-break controls what happens where row and column gap decorations intersect. Setting it to normal uses default layout-dependent behavior, none lets rules run straight through crossings, and intersection makes rules stop and break at the crossing point, which tends to look cleaner for interface grids while none gives a bolder, continuous look. developers experimenting with new CSS grid decorations can track browser support details on daily.dev."}},{"@type":"Question","name":"How can I make gap dividers only appear between actual grid items and not in empty cells?","acceptedAnswer":{"@type":"Answer","text":"Set rule-visibility-items to between, which shows a rule only when two adjacent items on both sides of the gap are present. Other values include normal (default), all (rules appear in every gap, even empty ones), and around (rules appear wherever at least one adjacent item exists), useful when structural lines are wanted even in empty cells. daily.dev helps developers keep up with granular CSS controls like this as they land in browsers."}}]}
```

