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

Alvin Martinez
Alvin Martinez
3,258 Points

Challenge Task 3 problem with request

The challenge task was very simple. Make the paragraph half of it's width using percentages. So I wrote:

p { width:50%; }

It then tells me it is incorrect and to check the length unit. Not sure what length unit it was referring to if it asked me to use percentages.

Thanks for any and all help.

James O'Brien
James O'Brien
3,574 Points

I have the same issue. Did you figure out a solution?

5 Answers

LOL! I got stuck on this one as well. Didn't read the question until now, so I set the font-size to 50% instead of the width.

p {
  width: 50%;
}

Works for me!

Alvin Martinez
Alvin Martinez
3,258 Points

Unfortunately James, I have not figured out a solution. I did a search for this problem on Treehouse and it seems to have been an issue that occurred before with someone else on this same Challenge Task.

Alvin Martinez
Alvin Martinez
3,258 Points

I went ahead and skipped that Task and proceeded with the remaining tasks. That did prevent me from having a completed segment of that portion of the Deep Dive. Not that big oif a deal since I know my answer was correct. : )

David Rynn
David Rynn
10,554 Points

I had the same problem. See this answer:

https://teamtreehouse.com/forum/using-a-percentage-set-the-paragraph-to-half-of-its-current-width-2

From the second answer set

.wrapper {background-image: url('/img/bp.jpg');}

instead of

.wrapper {content: url('/img/bp.jpg');}

How is current width?