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 trialColin Schmid
3,636 PointsStuck at step 5
Not sure if I am overlooking something, but when I commit step 5 with the followoing code:
img { display: block; margin: 0 auto 30px auto; max-width: 150px; border-radius: 100%; }
Treehouse keeps telling me:
Bummer! Did you set the max width to 150px?
Is this maybe a known or even unknown bug, am I just being silly and made a mistake?
2 Answers
Stone Preston
42,016 Pointsweird. looks like you have to select it using the class, not the element. I mean that makes sense, thats the reason you added the class, but it should not have let you pass the other tasks using the img selector and then failed you at the last one for not using the class selector. It should either work for all of them, or none of them at all.
so change your img selector to .profile-photo
.profile-photo { display: block; margin: 0 auto 30px auto; max-width: 150px; border-radius: 100%; }
Colin Schmid
3,636 PointsOh wow, you guys are quick – thanks for your answer! :D
Somehow I had the feeling it was something as simple as that all along. Now I was able to pass the code challenge using the class selector. However I feel like other students might get confused by the task description using the word image (-> img selector with no hint on using the class selector) or the inconsistency in the passing criteria. But actually it might be worth fiddling with it 'till it works, I will remember to use class selectors in future :)