Archive for the ‘em’ Category

Building Resizeable Components with Relative CSS Units

Posted on: No Comments
The following is a guest post by Ahmad Shadeed. Ahmad has put together a ton of examples to show off how using relative units can benefit us. I think a lot of us think of units like em as being for font-size, which it is, but can also be for lots of ot...

Use `rem` for Global Sizing; Use `em` for Local Sizing

Posted on: No Comments
Richard Rutter’s guide for setting the font-size of an element is interesting: he argues that we should use both em and rem units depending on the relationship it might have with other elements on the page: Take the example of a pull quote containin...