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

Question on #3 Select the image and set it to be a block element

Hi, my answer is:

.profile-photo
    display: block;

It isn't the right answer, and I'm stuck. Does it matter where this code is placed in the .css code?

4 Answers

Did you remember to wrap "display: block;" in something? (didn't want to hand it to you)

Thank you. Your answer will help me remember for next time.

Did you put curly braces?

.profile-photo {
  display: block;
}
Don Shipley
Don Shipley
19,488 Points

Sorry was writing mine as your posted yours Jared

Thanks, Jared. That's the "wrapper" that Jason mentioned. I'll try to remember.

Don Shipley
Don Shipley
19,488 Points

Try in your css file. .profile-photo { display: block; } Looks like you forgot the curly braces..

Oh, yeah! Thank you so much!