Y
Hacker News
new
|
ask
|
show
|
jobs
by
Looky1173
1092 days ago
Like `display: flex; flex-direction: column; width: 100%;`?
1 comments
oceankid
1092 days ago
section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
link
aerio
1091 days ago
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"?
link