Hacker News new | ask | show | jobs
by oceankid 1089 days ago
section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
1 comments

Personally that is a terrible idea. <section> should be used for semantic purposes, not layout.

Also, why not use "gap" instead of "margin-right-but-not-last-child"?