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 trialNick Rossi
3,109 PointsPretty sure I'm doing everything right, but cannot pass this quiz. p { width: 50%; } right?
As above, the quiz question is straightforward: "Using percentage, set the paragraph to half its original width." Not sure why it won't accept my code.
<!DOCTYPE html>
<html>
<head>
<title>Numeric and Textual</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<p>
<strong>Aesthetic post-ironic quinoa sartorial, wes anderson twee next level before they sold out fanny pack farm-to-table scenester.</strong> Godard fixie sartorial, keytar bicycle rights gluten-free odd future 8-bit mustache cred. Cred bushwick street art leggings fap DIY. 8-bit fanny pack quinoa vinyl art party jean shorts. Fingerstache, biodiesel kale chips narwhal pinterest tofu echo park pour-over fap raw denim craft beer. Truffaut raw denim, pop-up PBR pork belly mustache food truck cred carles synth. DIY sustainable craft beer, polaroid leggings messenger bag lo-fi twee. Keffiyeh thundercats semiotics, kogi officia tattooed gastropub viral ut skateboard street art.
<a href="#">Read more »</a>
</p>
</div>
</body>
</html>
/* Write your CSS below */
strong {
color: initial;
}
.wrapper {
content: url('bg.jpg');
}
p {
width: 50%;
}
4 Answers
Wayne Priestley
19,579 PointsHi Nick,
That has to be a code challenge fault, you did exactly as asked, it should pass.
I know its no help knowing that, but apart from waiting and trying again later I don't know what else to suggest.
Nick Rossi
3,109 PointsWayne, thanks for your input. I'll have to take it up with tech support.
Wayne Priestley
19,579 PointsNick,
Your code for the wrapper was wrong, I didn't notice because it passed the challenge (still does), I don't know why, it shouldn't have.
All good now though
Wayne Priestley
19,579 PointsHey Nick,
Use this code, it passes,
strong {
color: initial;
}
.wrapper {
background: (img"bg.jpg")
}
p {
width: 50%;
}
Nick Rossi
3,109 PointsYou're right. I never realized it because, for whatever reason, it accepted the wrapper code in question 2. Weird! Thanks again.