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 trialJoshua Kohantab
6,577 PointsWhy does the instructor, using fixed padding values for the main nav elements and not em units
I've trouble with understanding when to use em and when to use fixed units when it comes to padding and margin
1 Answer
Steven Parker
231,269 PointsYou use em units when you want something to vary proportionally to the font size, and px units when you want something to always have the same size. It's often a design choice, so it can depend on what look you're trying to achieve as to which you use.
Joshua Kohantab
6,577 PointsJoshua Kohantab
6,577 Pointsthank you Steven , for the feedback