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

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

Jorge Vega
seal-mask
.a{fill-rule:evenodd;}techdegree
Jorge Vega
Front End Web Development Techdegree Student 2,905 Points

Problem with the profile-photo

I have some issues with getting my picture in the right place. The picture is to too close to the nav-bar (menu). I checked my code and went over the videos again I can't find the reason why?

<section> <img src="img/nick.jpg" alt="photograph of nick" class="profile-photo"> <h3>About</h3>

/*************************** PAGE: ABOUT ***************************/

.profile-photo { display: block; /* Allow us to use auto margins */ max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }

Thank you in advance!

jorge

Steven Parker
Steven Parker
229,644 Points

There doesn't seem to be any nav bar code shown here. To make it easier for folks to replicate and analyze the issue, make a snapshot of your workspace and post the link to it here.

1 Answer

Graham Hornecker
Graham Hornecker
10,849 Points

If it's too close for your liking, change your margin. Instead of: "margin: 0 auto 30px" you can put "margin: 15px auto 30px"