Hacker News new | past | comments | ask | show | jobs | submit login

I make extensive use of spacers. A generic flex container, a fixed-width spacer, and a take-what-you-can spacer cover most needs with three simple elements.



but flexbox already has that built in, with space-around or space-between. you also have gap for more regular spacing needs, and margin on the flex items as a last resort.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: