2026-04-28 18:48 UTC
@patrickbrosset@mas.to @hejchristian@front-end.social @chriskirknielsen@front-end.social Thanks, linked this thread in the issue.
Fake columns work, but it becomes unwieldy when the number of items is unknown, and you want the `repeat()` like in the examples above.
For some cases, it could be possible to calculate the necessary numbers like @anatudor@mastodon.social does here: https://frontendmasters.com/blog/count-auto-fill-columns/ — but yeah, ideally we'd have the ability to create these “virtual” edge gaps around the items.
Replies (2)
-
@anatudor@mastodon.social 2026-04-28 19:43
@kizu@front-end.social @patrickbrosset@mas.to @hejchristian@front-end.social @chriskirknielsen@front-end.social For the initial problem, I'd use borders, backgrounds & negative margins. No pseudos. https://codepen.io/thebabydino/pen/pvNooZj
-
@hejchristian@front-end.social 2026-04-28 20:38
@kizu@front-end.social @patrickbrosset@mas.to Thank you both 💜 Would love to see a way to do this with more ease down the line; but until then I've been inundated (in a great way) with solutions folks have come up with 🤩 So many ways to tackle the problem, really cool to see.