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

Code Challenge: Numeric and Textual Data Types

I having trouble with this task:

Using a percentage, set the paragraph to half of its current width.

Here's my code:

<code> p { width: 50%; } </code>

Any ideas? I am confident that the answer is correct but for some reason it keeps telling me to check the length unit in my CSS value.

Thank you!

4 Answers

Chase Lee
Chase Lee
29,275 Points

This worked for me:

p{width: 50%;}

I can't really see any difference.

Chase Lee
Chase Lee
29,275 Points

Could you give a link to the code challenge.

Jason Loughry
Jason Loughry
5,680 Points

Hey Samuel Lopez,

I just tried the same thing and it seemed to work. Maybe run it again and see if it will work now...

Thank you @Chase James and @Jason Loughry. Apparently I had to add a space between the div and the [ in the code from the previous task.

Thank for you help guys!