[CSS] Understanding em & rem in CSS
Introduction
In this article, I will talk about em & rem units in CSS and explain when we can use those units to make better web pages.
em (relative to parent)
em is a unit used for font size, but the size of a font is relative to the parent.
HTML:
...
jaylog.hashnode.dev2 min read