3 ms·
section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
by oceankid 3y ago
section { display: flex; flex-wrap: wrap; }
section > * { flex: 0 0 auto; }
section > *:not(:last-child) { margin-right: 1rem;}
- aerio 3y agoPersonally 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"?