EM is a form of measurement used to size what ever is needed in CSS. An example is with font size, 1em equals font size of parent snd 2em is twice font size of parent.
In the case of rem it is relative to root html elements and font size, it is often easier to work with. However the problem with ems is that they stack and grow because of nesting.
Comentarios