4 ms·
Somewhat off topic, but it annoys me that CSS resets kill the margins on p, h1, h2, and ul. As well as the list-style. I basically don’t use those elements for
by erikpukinskis 3y ago
Somewhat off topic, but it annoys me that CSS resets kill the margins on p, h1, h2, and ul. As well as the list-style.
I basically don’t use those elements for UI components, and in the rare cases where I would want to, I could just do a one-off to override them. Or, more likely I’d just do something like <div role="heading" aria-level="1">
I find in applications you eventually need some little places where you have some basic document styles: paragraphs, headings, bullets, and it’s nice to be able to use those basic semantic tags for that stuff.
- bdlowery 3y agoBecause collapsing margins are annoying. Doing this removes that. All you have to do is just use margin-top or margin-bottom on them.