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 trialMuhammad Ali Khan
8,227 PointsIt wont accept my answer
Despite it being right, the answer is not being accepted I wrote p { Width: 50% ; }
whats wrong in it?
16 Answers
Molly Dopheide
11,083 PointsIt looks like this line is formatted correctly, sometimes the problem is surrounding code, a forgotten } or , do you have more information?
Muhammad Ali Khan
8,227 PointsI m especially careful about the ; and the braces......it says to check the length unit...i don't think there is anything wrong with the % sign
Molly Dopheide
11,083 Pointshmmm, the percent sign should be okay. Can you share which stage and video this is from?
Molly Dopheide
11,083 Pointsdid the question specify a relative or absolute width?
Muhammad Ali Khan
8,227 PointsIt is the third question after Numeric and Textual Data Types video in CSS Deep Dive stage 3. The question is about using percentages in defining the width of the paragraph, so it is relative.
Molly Dopheide
11,083 Pointsthis is what I have
strong {
color: initial;
}
.wrapper {
background-image: url (img/bg.jpg);
}
p {
width: 50%;
}
Molly Dopheide
11,083 PointsIt seems the same as what you posted. Have you tried exiting out and re-typing it in? Sometimes that helps.
Muhammad Ali Khan
8,227 Pointsyes twice
Muhammad Ali Khan
8,227 PointsIt has stopped me from progressing further and i have just two days left to complete it...frustrating
Muhammad Ali Khan
8,227 Pointsi appreciate you helping me out on this......is there any way i can proceed to the next stage without completing this one
Molly Dopheide
11,083 PointsThe only other thing I can think of is try to contact the support people. They may be able to help. It can be frustrating.
Adam Moore
21,956 PointsCan you post your code on here? It may have something to do with something else in the code that is stopping you from proceeding.
Muhammad Ali Khan
8,227 PointsIt is exactly the same as posted above nothing else in the style sheet.
Muhammad Ali Khan
8,227 PointsThey blocked my free trail two days before....thats not fair
Muhammad Ali Khan
8,227 Points[Screen Shot of my code](D:\Education\Treehouse\ Untitled-1.jpg "why is it wrong")
Muhammad Ali Khan
8,227 PointsI am unable to post the screen shot even by markdown.