rem vs em: Understanding the CSS Unit Basics
CSS is the most important component of modern web design, but implying it effectively can be tricky. One of the most noteworthy concepts to grasp in CSS is the distinction between rem and em. Web developers who want to create flexible and responsive web pages must contemplate the differences between these two units. One of the primary distinctions between rem and em is that an em unit is relative to the font size of its parent element, whereas a rem unit is always relative to the root font size.