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 trialderekchiodo
1,973 PointsUsing em instead of px for the h3 bottom margin
In the video, Nick uses 0 0 1em 0; for the h3 selector. Why did he use em instead of px?
1 Answer
Steven Parker
231,269 PointsSince he doesn't say, it's a bit of a guess...
But one reason to use em units is when you want the spacing to be relative to the font size. If the font is changed later, the spacing will adjust to match.