DEV Community

Discussion on: A Modern CSS Reset

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;
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,