Comparing rem and em units of measure in CSS

In CSS, rem and em are two commonly encountered units of measurement. What does each unit mean? What is the difference between the two?

By Jen Kramer
April 6, 2016
Comparing rem and em. Comparing rem and em.

Learn the ins and outs of CSS with CSS: The Definitive Collection, a series of short and practical ebooks taken from the upcoming book CSS: The Definitive Guide, 4th Edition.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more
Post topics: Web Programming
Share: