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

help plzz

Using a percentage, set the paragraph to half of its current width. here is what I have it should work idk why its not working

p { width: 50%; font-size: 75% } thanks!

12 Answers

Did you add ";" to the end of font-size?

I did this and it worked:

p { width: 50%; }

Just make sure all of the styles you did before are closed. I know it let me pass part two without closing the wrapper style.

Like this:

p { width: 50%; font-size: 75%; }

I was hoping it was that simple :)

Can you give me the link to what you are working on so I can take a look at the problem?

like this

"font-size":

yes I just tried it and its saying bummer

ok

Challenge task 3 of 3

when you set an element as a percentage, it becomes that percent of whatever is containing it. So the p tag might is becoming 50% of the element containing it, not necessarily 50% of what it was before.

you need to take out "font-size:75%"

ok I will try