1 min read

Minding the gaps: a new way to draw separators in CSS

CSS introduces a new grid gap decorator property, finally providing a native way to style gaps without pseudo-elements or border hacks.

frontend links/readings

Original Article

Author: Microsoft Edge Team Published: 3/19/2025

Link: Read original article →

tl;dr

CSS now has a native gap decorator property for styling gaps in grid and flexbox layouts, eliminating the need for pseudo-elements or border workarounds.

My Thoughts

Finally, a gap decorator, tired of pseudo elements or weird borders to make it work.

This is my personal commentary on the original article. Please read the original article for the full context.