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 trialChuck Wells
1,603 PointsProfile-photo has gone to the Header
At 3:26 Nick has his photo centered under the Header and Nav. I code: .profile-photo { display:block; max-width:150px; margin:0 auto 30px; border-radius:100%; } just like what he input but my photo comes up to the right of the Header and Nav and not seen in the Mobile Width view, in my browser, Firefox 34.0.
If I Comment out /display: block;/ the profile-photo shows back in the Section but Left Justified.
Where did I go wrong?
2 Answers
Kay Ouchida
10,480 PointsHi chuck, I believe you need to add "clear: both;" to your css. For example :
.profile-photo {
clear: both;
display: block;
max-width: 150px;
margin: 0 auto 30px;
border-radius: 100%;
}
This will clear your header div
Chuck Wells
1,603 PointsKay, That was spot-on. I think we had the clear:both; in the code before but now can't find it. Thanks.
Max Goetz
5,360 PointsI had this same exact issue. Not sure why it didn't work like in the lesson.
EDIT: Just looked at the teachers notes. Looks like a known issue with Firefox.
Johanna Murch
4,514 PointsJohanna Murch
4,514 PointsPlease post your entire code so we can help you better. Thanks!