Y
Hacker News
new
|
ask
|
show
|
jobs
by
oceankid
1098 days ago
Looks great! Working on something similar, but couldn't go through the nuances of managing every gnarly inputs. What do you think of a PR for <section> stacking any children as equal width columns.
1 comments
Looky1173
1098 days ago
Like `display: flex; flex-direction: column; width: 100%;`?
link
oceankid
1098 days ago
section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
link
aerio
1097 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