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 Numeric and Textual Data Types

Help Please!!

I am in Values and Units at Numeric and textual Data Types. I am on challenge task 3 of 3. i cant get it.

Its asking me to: Using a percentage, set the paragraph to half of its current width.

I put: p { width: 50%; }

It was it is wrong even though this is what it shows to do in the video.

please help!?

6 Answers

Hi Stormy,

There is no id or class called content in the html so I don't understand what that is for. The error messages in the code challenges sometimes fall a little short of describing what the actual problem is; not unlike Microsoft's error messages, ha ha ha. This can make it difficult to continue on. Here is the code you need.


strong {
  color: initial;

.wrapper {

p {
  width: 50%;

That code will definitely work but just to specify he didnt use content has a selector. But has a way to had the background img.


Thank you so much this is exactly what i needed, it worked. thank you again!

I think maybe you were not specific enough in your targeting of that paragraph try :

.wrapper p {

seems to be working for me

Just tried it with just

p {
    width: 50%;

and it worked for me though so I am not sure what you did wrong did you delete your previous code. Because I think they check for the previous step each time.

That also didn't work....

Could you paste all the code you wrote on that challenge it may help to target the problem ;).

It say to check the length unit in my CSS value. Is what i did wrong.

strong { color: initial; } .wrapper { content: url(img/bg.jpg); } p { width: 50%; } <<and that is wrong

I am not sure why your using the content property to set the background but i just passed the challenge just by changing that property to background.

Using content seems to be erasing the actual paragraph and the div didnt have the same height thats probably why you were not able to pass the challenge.