Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Adam Evans
Adam Evans
6,975 Points

Alignment Issue

Hi,

I can't seem to get my profile photo to align the way it does in the video. Rather then centered between the nav bar and the About title, it is to the right of the nav bar. Any thoughts on how to correct this?

Thanks! Adam

3 Answers

Adam Evans
Adam Evans
6,975 Points

It actually turned out to be a Firefox issue. It worked fine in Chrome.

I'm just guessing, but maybe this?

.profile-photo {
    clear: both;
    display: block;
    max-width: 150px;
    margin: 0 auto 30px;
    border-radius: 100%;
}
Adam Evans
Adam Evans
6,975 Points

That did fix it - wish I knew what was causing it. I tried shifting it up and down the CSS and it remained where it was.