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
Suxin Deng
804 Pointsa question about one sentence description in the video about em and pixel
In the video, the presenter says the following, "So this means that now our title font size is 1.6 times larger than 32 pixels." Since in the css, .title{ font-size: 1.625em; } should this sentence be said like," our title font size is 1.6 times larger than 16 pixel?" Since 1.625 em is comparing to 1 em, and 1 em is equal to 16 pixel. Thx.
1 Answer
Jason Anders
Treehouse Moderator 145,863 PointsHey Suxin,
By default 1em does equal 16px; however, this doesn't have to always be the case. Without a link to the actual video, I can only provide a guess as to why this was said. If it wasn't an error, the default body size could have been changed to 32px, thus making 1.625em what the instructor said - 1.6 times 32px.
If you could provide the link, we could be more clear and precise. In the future, it's always best to click the "Get Help" button from the video/quiz/challenge screen you are on, as this links us directly to the video/quiz/challenge in question.
Keep Coding!