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

CSS

Ord Gernov
Ord Gernov
2,510 Points

EM vs Percentage

Hi,

What is difference betwen em unit and percentage?

If we have set up our default font size to 16px, than that is equal to 1em, and also 100%.

1 Answer

Tony Nguyen
Tony Nguyen
24,934 Points

Here's a helpful article you can read that can distinguish the difference between those two, and more!

http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/