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 trialKelly Haras
830 PointsMy profile picture is not showing up in the right spot...Help!
My profile picture is showing up on the far right of the page, in line with the header.
Here is the code on my main.css page:
.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
Here is the code on my about.html page:
<img src="img/3f028b3.jpg" alt="Photograph of Kelly Haras" class="profile-photo">
5 Answers
Haydn Ellen
Python Development Techdegree Student 22,243 PointsHad the same problem, use clear: both; and it will be in the right place.
James Home
12,011 PointsShow the HTML too.
Kelly Haras
830 PointsHTML coding is:
<img src="img/3f028b3.jpg" alt="Photograph of Kelly Haras" class="profile-photo">
Kelly Haras
830 PointsThat worked - my profile picture is centered now. Thanks for your help!
Federico Chin
8,765 PointsI had two problems with the photo. First, it was rendering perfectly in Internet Explorer and Google Chrome, but the picture did not show up in Mozilla Firefox. Second, the picture was not centered in Safari. The "clear:both;" element in CSS fixed both problems.