Why you shouldn’t set font-sizes using em
Ems create cascading effects, are hard to calculate, and compromise responsive designs; use pixels, percentages or even better use rem! When it comes to setting font sizes in CSS, there are two relative units that are commonly used: em and rem. Both units are relative to the font size of the parent element, but there…