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 Make an About Page

Raphael Reiter
Raphael Reiter
6,820 Points

[SOLVED] display:block ? can't seem to select profile-photo with : .profile-photo

i can't seem to finish the challenge. When I try to tag profile picture, i can't seem to do it. I use this code:

.profile-photo { display:block; }

Nothing seems to happen :(

Double check that you added the .profile-photo class to the img tag.

<section>
  <img class="profile-photo" src="img/gratt.png" alt="Photo of Gratt">
</section>
  .profile-photo {
    display: block;
  }
Raphael Reiter
Raphael Reiter
6,820 Points

I did thanks, I found the mistake... I was typing in the html window and not the css one... sorry :/

Hi Raphael Reiter, glad you figured it out. I've changed your question title to indicate that this has been solved.