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!

7 Answers

The percentage takes its value from the surrounding DIV. If you'll post the code in context, we should be able to figure it out.

Can you also post the HTML as well please?

I didn't do anything to the HTML maybe that's where I'm going wrong?

I didn't do anything to the HTML maybe that's where I'm going wrong?

strong { color: initial; }

div { width: 700px; padding: 2em; margin: auto; background-image: url('bg.jpg'); }

p { width: 50%; }

I passed thanks for ur help!!