Hacker News new | ask | show | jobs
by adregan 459 days ago
I often set gaps between elements to 1rem or more. Coloring the gap wouldn’t be the same as adding a rule.

My “theory of layout” is that no element should have any styling that relates to its relationship with other elements. Gap is very useful for establishing spacing.

1 comments

Perhaps with margin: auto your :gap element can sit in the middle of the “gap space”?
I think we’re getting into kludge territory there. Might as well have an explicit property that can be autocompleted/stumbled upon via spec or docs than an implicit behavior born of a little trick.