When to Use Em vs. Rem

Both em and rem are flexible, scalable units which are translated by the browser into pixel values, depending on the font size settings in your design. 

While em is relative to the font-size of its direct or nearest parent, rem is only relative to the html (root) font-size.

posted on 2016-01-28 11:05  fishyk  阅读(122)  评论(0编辑  收藏  举报

导航