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 CSS Basics (2014) The Box Model Margins

Zijun Liao
Zijun Liao
13,409 Points

I am confused about the margin-bottom attribute

I am confused about the margin-bottom attribute at 3:58, Guil says 26px, and 1em equals to 16px, why not set the margin-bottom to 1.625em /* 26px / 16px*/

Cheers

2 Answers

Zijun Liao
Zijun Liao
13,409 Points

Just review the previous video, An em is equal to the current font-size.

Hi Zijun,

You are correct. EM's are a scalable unit relative to font-size, where as pixels are fixed.