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
marsha spell
Courses Plus Student 5,555 Pointshelp 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
John Griffin
2,798 PointsThe percentage takes its value from the surrounding DIV. If you'll post the code in context, we should be able to figure it out.
John Griffin
2,798 PointsCan you also post the HTML as well please?
marsha spell
Courses Plus Student 5,555 Pointsmarsha spell
Courses Plus Student 5,555 PointsI didn't do anything to the HTML maybe that's where I'm going wrong?
marsha spell
Courses Plus Student 5,555 PointsI didn't do anything to the HTML maybe that's where I'm going wrong?
marsha spell
Courses Plus Student 5,555 Pointsstrong { color: initial; }
div { width: 700px; padding: 2em; margin: auto; background-image: url('bg.jpg'); }
p { width: 50%; }
marsha spell
Courses Plus Student 5,555 PointsI passed thanks for ur help!!