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 trialAlvin Martinez
3,258 PointsChallenge 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.
5 Answers
Andreas Kullander
3,316 PointsLOL! 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
3,258 PointsUnfortunately 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
3,258 PointsI 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
10,554 PointsI 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');}
Ary de Oliveira
28,298 PointsHow is current width?
James O'Brien
3,574 PointsJames O'Brien
3,574 PointsI have the same issue. Did you figure out a solution?