Hacker News new | ask | show | jobs
by Looky1173 1092 days ago
Like `display: flex; flex-direction: column; width: 100%;`?
1 comments

section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
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"?