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 trialLeah Black
2,065 PointsCode challenge problem
I'm having trouble with a code challenge in the web design track (https://teamtreehouse.com/library/make-an-about-page). Previous challenges had me choosing the image and setting display to block and centering with margin code. The last challenge in this set is to give the image a max-width of 150px and a border radius of 100%. This is my code:
img { display: block; margin: 0 0 30px; max-width: 150px; border-radius: 100%; }
When I check my work I get the "bummer" response with a "did you set the max width to 150px" hint.
I need another set of eyes here to tell me what I'm doing wrong. I've tried this numerous times with the same result. Thanks.
2 Answers
Ryno Botha
Courses Plus Student 4,055 PointsHey Leah x)
I think they didn't want you to use the img element, use the class .profilephoto you had to add in the tag :
HTML:
<img src="img/gratt.jpg" alt="Photograpth of Gratt" class="profilephoto">
CSS:
.profilephoto { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
Leah Black
2,065 PointsI could have looked at that code until doomsday and not thought of this! More proof (as if I needed any) that I am no good at all at proofing my own work. :-)
Thank you for saving my sanity.
Ryno Botha
Courses Plus Student 4,055 Pointshaha ^^ that made me smile.
Glad I could help xP and have fun with the track~