Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


EM Units

Just trying to clarify something real quick. Are the parent elements of EM units based off of the value in the Declaration. Thank you for your help.

4 Answers

Steven Parker
Steven Parker
229,787 Points

You should know if you're building your own pages. But if you want to analyze some existing page, you can display the DOM tree and/or the CSS style inheritance using the Dev Tools. The ones built in to Chrome are quite nice.

Steven Parker
Steven Parker
229,787 Points

I'm unsure of the wording of your question, but...

Em units are based on the font size of the parent element. On the other hand, rem units are based on the font size of the root (HTML) element.

Did that answer it?

Sorry about my wording man. This will make the question easier. How do you know identify the parent element of EM units?

Ok cool. Thank you very much for your help. This newbie greatly appreciates it.