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!

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

gabe brickle
gabe brickle
519 Points

Looking for an error. I'm trying to make my background orange and center the photos and their associated links.

2 Answers

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey Gabe,

you're styling an element with the id of wrapper (#wrapper) but there is no element with the id of wrapper in your index.html. Just give the id of wrapper to the element you want to style and it should work! :)

gabe brickle
gabe brickle
519 Points

Hi Tobias,

Newbie here. Can you be a little more detailed?

To me, the code looks exactly like the code in the training video. Should I have edited in index.html as well as in main.css?

Tobias Helmrich
Tobias Helmrich
31,602 Points

I'm sorry, of course! :) Could you specify the video you're talking about by the way?

The problem is that you're selecting an element with the id of wrapper (You write an # in front of the id's name when you want to select an id in CSS) but there is no element in your HTML markup that has this id. Let's just say for an example that you want the section in your index.html to have the styles you mentioned above then you give the section the id of wrapper like this:

<section id="wrapper">

Note that you only write a # symbol in front of the id in CSS, not in HTML. So I guess that maybe it's a new video with a different workspace or you overlooked it but if you tell me the video you're talking about I can have a look at it, I hope that helps! :)

Tobias Helmrich
Tobias Helmrich
31,602 Points

Oh and I noticed a small mistake in your markup. On line 11 you're writing

<a href="index.html"</headera>

but you should just close your anchor tag like this:

<a href="index.html"></a>

Edit: I just saw that you closed your anchor tag further below so you can just remove

</headera>