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

adding pages to a Website

I don't understand what I'm doing wrong for task 3. I input .profile-photo{display:block;} but it keeps marking it as wrong.

2 Answers

Donald McLamb
Donald McLamb
2,867 Points

Hi Tyerone,

The Css looks right. The below Css worked for me, I don't think the structure of the css should matter. I would blame the html but that should be correct considering it was part of a previous challenge. Did you swap to the css tab ? If so I would reload the page and try again.

.profile-photo{
    display: block;
}

Donald McLamb is right there is functionally no difference between:

.profile-photo{
    display: block;
}

or

.profile-photo{display:block;}

I like his suggestion about checking to make sure you put it in the CSS file instead of the html... It's also entirely possible that you're failing for a reason unrelated to this. We will be better able to diagnose your problem when you copy the question/error message/answer into the forum so we can see it.

click on the markdown cheatsheet below the post area so you can include your code. It doesnt automatically link. at the very least copy and paste it so we can help.