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

CSS How to Make a Website Adding Pages to a Website Make an About Page

can't answer challenge's question?

the challenge is asking me to "Select the image and set it to be a block element". I'm entering .profile-photo{display:block;} but it keeps coming back "bummer!"

6 Answers

Does the image have a class? Try img {display: block;}

if its a class its;

.profile-photo { display: block; }

if its a id then;

profile-photo {

display: block;

}

This is what it should look like.

.profile-photo {
  display: block;
}

This is the same as what Bill has posted

Just tried..

Challenge Task 3 of 5 Select the image and set it to be a block element.

Added the above code to the bottom of the main.css file.

this is wrong it doesnt even work dont put false information on this website it is no help

The inside of the {} will be display: block; you will need to check to see if your class is named properly to what it is asking you in the question, if this doesn't work copy and paste the whole question and ill have a look

Jayden Spring
Jayden Spring
8,625 Points

Try img.block-photo It may be looking for the element type