DEV Community

Discussion on: em VS rem

Collapse
 
bayuangora profile image
Bayu Angora • Edited

So, where's rem inherited to if we don't fill anything (margin, padding, font-size, etc) on html class?

Collapse
 
danielatwood profile image
Daniel Atwood

I think most browsers default the body to 16px which is what rem would be set to.

Collapse
 
ibn_abubakre profile image
Abdulqudus Abubakre

Yes, it has a default of 16px