when to use em and rem ?

I watched Kevin's video about this topic, and concluded that:

use em for padding and margin
use rem for font size and margin if we want consistent spacing
Was this page helpful?