DEV Community

Discussion on: A Modern CSS Reset

Collapse
anthonycook profile image
Anthony Cook • Edited

Have you considered using rem instead of em on this part? (so the margin is relative to document font size)

article > * + * {
  margin-top: 1em;
}
Collapse
hankchizljaw profile image
Andy Bell Author

em is relative to the element in question’s size, which I’ve found generates a nice, natural rhythm. I went into more detail using rem units in this article, last year,