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 trialnydia subur
1,459 Pointswhat's the difference of px and em ?
I'm still confused about them both. when do we know which one to use?
1 Answer
davidciccone
PHP Development Techdegree Graduate 27,003 Pointspx are a fixed unit while em are a scalable unit equal to the current font size of the element. A good article on this can be found here https://css-tricks.com/css-font-size/