Hacker News new | ask | show | jobs
by Facens 5550 days ago
If you want to be modular, you must have conventions. This is to prevent double spacing when you put two elements one next to another without additional styling. I also use to have ELEMENT > *:first-child {padding-top: 0} on containers, so that I can control the padding of the container and without having to consider what element I place into it. There's a lot of best practices I made part of my workflow, perhaps I should write a blog post about it.