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

CSS CSS Foundations Values and Units Relative Length Units

Task: use em unit to set paragraph to 24px. Base is 16px. My code p { font-size: 1.5em;} Error: Check length unit

This is task 2 of 3 in relative length units deep dive. The error I get says "Check the length of the unit in your CSS." Isnt' that the em unit?

4 Answers

Hi Sally,

I copied and pasted your code into the challenge and it passed. Maybe restart your browser?

Jeff

Yep, that worked. When all else fails . . .

jdh
jdh
12,334 Points

Hey it looks like you're doing it right so I imagine that there's some kind of syntax error you're making that we can't see. Try comparing the below with your answer

/* Write your CSS code below */

h1 {
  font-size: 2.5em;
}

p {
 font-size: 1.5em; 
}

Thanks, that is what I have. Refreshing the browser made it work.