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

Problems with the profile picture

Whenever I change the display on the profile picture to block, the picture disappears. Please help me

3 Answers

Hi John,

This issue has come up a few times recently - it's a browser issue. Using Firefox by any chance?

There's an explanation and and fix in the following forum posts:

https://teamtreehouse.com/forum/display-block-makes-my-image-of-nick-disappear

https://teamtreehouse.com/forum/problem-centering-display-inlineblock

Hope that helps you get it resolved.

Regards

Paul

Make sure on your "about.html" page you have this. (I'm putting the CSS in the same code block below. Paste accordingly.

  <a>Paste this AFTER your closing header tag</a>
<div id="wrapper">
      <section>
        <img src="img/nick.jpg" alt="Nick" class="profile-photo">
        <h3>About</h3>
        <p>Hi, my name is nick and this is my design portfolio where I share all my favorite work. When I am not learning about coding I am sleeping..</p>
      <p>If you'd like to follow me on Facebook&copy; my username is <a href="http://facebook.com">@yourusername</a></p>
      </section>
      <footer>
        <a href="http://twitter.com"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="http://facebook.com"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2014 Nick</p>
      </footer>
    </div>

<a>This is your CSS</a>

.profile-photo {
  display: block;
  max-width: 150px;
  margin: 0 auto 30px;
  border-radius: 100%;
}

Thank you for the help. I got the profile picture to work again.