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

joshuakimber
joshuakimber
3,186 Points

"Web Design"challenge wants me to "select the image and set it to be a block element." on about page. Can't get it right

I wrote in the css file:

img }
    display: inline-block;
}

It's wrong so what is the right answer?

3 Answers

joshuakimber
joshuakimber
3,186 Points

Thanks guys. i figured it out. They were looking for me to select the profile-photo class. I appreciate the prompt response, which is very impressive.

Joshua, you are very close! Take your first curly brace and reverse it the other way like { and set the image to display: block.

Chris Shaw
Chris Shaw
26,676 Points

Hi Joshua,

The problem is your backwards curly brace after your selector, selectors always open and close using {} so taking that knowledge we should end up with the following.

Also because the task is asking for a block level element you can drop the inline- prefix.

img {
    display: block;
}