Welcome to the Treehouse Community
Looking to learn something new?
rem & em
The video was great in discussing the uses of rem and em, however, there might be some confusion. I found that, if an element is not associated with a parent, the em unit is relative to the font size used on the element you want to change with em.
Also if you could make clear this question: is it sensible to use rem for all font-sizes rather than using em, as asked previously by another student. Since rem is not inherited therefore will not cause confounding measurement errors on font sizes.
I agree with both of you, it makes sense to use both em and rem where appropriate. Thank-you for the clarification guys @glasser @bis . All the best :)
Miguel Roncancio3,986 Points
I don't think you should limit yourself to using only one type of unit. Rem can be more useful than em in some cases and vice versa. Personally, I prefer using em simply because I set my font size once in the body selector and scale everything else using em's so no need to use rem as the font size is only declared once.