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

General Discussion

Danielle Phipps
Danielle Phipps
2,861 Points

Relative 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
Danielle Phipps
2,861 Points

ok nvm dumb question I forgot to add the font-size: part

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Danielle Phipps ,

The value is correct, but don't forget to include the property that makes it all happen :)

Yonatan Schultz
Yonatan Schultz
12,045 Points

I think 1 em = 12pt. Did you try 2em?

EDIT: Whoops, nvm.

Danielle Phipps
Danielle Phipps
2,861 Points

Thanks for answering lol I realized what I had done right after I posted it. I was too focused on the math part lol.

Caesar Bell
Caesar Bell
24,827 Points

this 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

p { font-size: 1.5em; }