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!
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
Danielle Phipps
2,861 PointsRelative Lengths Code Challenge
Question 2/3: Using the em unit, set the paragraph's font size equal to 24px.
My Answer:
p { 1.5em; }
Can anyone tell me what I am doing wrong? 16px is equal to 1 em so 24px should be equal to 1.5em right?
7 Answers

Danielle Phipps
2,861 Pointsok nvm dumb question I forgot to add the font-size: part

Guil Hernandez
Treehouse TeacherHi Danielle Phipps ,
The value is correct, but don't forget to include the property that makes it all happen :)

Yonatan Schultz
12,045 PointsI think 1 em = 12pt. Did you try 2em?
EDIT: Whoops, nvm.

Danielle Phipps
2,861 PointsThanks for answering lol I realized what I had done right after I posted it. I was too focused on the math part lol.

Guil Hernandez
Treehouse TeacherNo problem. Nice work!

Caesar Bell
24,556 Pointsthis might be helpful to, http://reeddesign.co.uk/test/points-pixels.html
its is a chat that shows the breakdown of px to em to pt etc

ilyass mougar
Courses Plus Student 2,858 Pointsp { font-size: 1.5em; }