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 trial

CSS How to Make a Website Adding Pages to a Website Style New Pages

My 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

HTML coding is: <img src="img/3f028b3.jpg" alt="Photograph of Kelly Haras" class="profile-photo">

That worked - my profile picture is centered now. Thanks for your help!

Federico Chin
Federico Chin
8,765 Points

I 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.