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 trialJana Johnson
459 Pointscan't find my error
on main.css - adding profile photo.
.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
This shows profile photo to the right of page nav element - not under.
removal of display: block; puts photo in the correct area of page, but not centered.
Obviously, I've done something wrong somewhere else on the .css file, but can't think of where to look?
2 Answers
Andrew Shook
31,709 PointsI just helped someone with this the other day. You can find your answer here. Long story short, the header element is floated left, so either the .profile-photo needs to be clear:both or the #wrapper need to be clear:both. Also if you look in the teacher notes below this video, Nick, addresses this problem.
Jana Johnson
459 Pointsthank you!