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

It 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
Molly Dopheide
11,083 Points

It looks like this line is formatted correctly, sometimes the problem is surrounding code, a forgotten } or , do you have more information?

I 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
Molly Dopheide
11,083 Points

hmmm, the percent sign should be okay. Can you share which stage and video this is from?

Molly Dopheide
Molly Dopheide
11,083 Points

did the question specify a relative or absolute width?

It 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
Molly Dopheide
11,083 Points

this is what I have

strong {
     color: initial;
}
.wrapper {
     background-image: url (img/bg.jpg);
}
p {
     width: 50%;
}
Molly Dopheide
Molly Dopheide
11,083 Points

It seems the same as what you posted. Have you tried exiting out and re-typing it in? Sometimes that helps.

yes twice

It has stopped me from progressing further and i have just two days left to complete it...frustrating

i appreciate you helping me out on this......is there any way i can proceed to the next stage without completing this one

Molly Dopheide
Molly Dopheide
11,083 Points

The only other thing I can think of is try to contact the support people. They may be able to help. It can be frustrating.

https://teamtreehouse.com/support

Adam Moore
Adam Moore
21,956 Points

Can you post your code on here? It may have something to do with something else in the code that is stopping you from proceeding.

It is exactly the same as posted above nothing else in the style sheet.

They blocked my free trail two days before....thats not fair

[Screen Shot of my code](D:\Education\Treehouse\ Untitled-1.jpg "why is it wrong")

I am unable to post the screen shot even by markdown.