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

General Discussion

Code challenge problem

Hi, I'm stuck on the final code challenge for styling content for CSS. It looks like I'm inputting the wrong ID selector but I can't see where I'm going wrong. I'm inputting #copyright followed by the {} tags along with the color and border instructions but to no avail.

9 Answers

Michael, can you post both the code challenge requirement and the code you created? That'll help us troubleshoot.

Thanks James. I'm sure there's something I'm doing wrong but I'm afraid I'm unable to spot it.

Code challenge -

Select the copyright using an ID selector. Give it a solid top border that is 8 pixels thick and has a color of #2A0400.

Code I created -

copyright {

border: 8px 0px; color: #2A0400; }

And the response I'm getting -

Bummer! Remember, to select an ID, use the '#' character followed by the ID of the element you want to select.

Regards,

Mike

did you accidentally not copy over the # before copyright? You need this to select ID's

Copy over?

Sorry for the confusion....when you pasted the code above I was wondering where the # was before the word copyright. The # is the ID selector. The code should like this:

copyright {

border-top: 8px solid #2A0400;

}

Copy over?

Copy over?

Sorry for the confusion....when you pasted the code above I was wondering where the # was before the word copyright. The # is the ID selector. The code should like this:

#copyright { border-top: 8px solid #2A0400; }

notice the # before copyright

Hope this helps.

Michael,

Your code's right, I think, except for adding "#" before "copyright". In other words, it should be "#copyright { }".

#copyright
{
    border-top: 8px solid #2A0400;
}

Hi guys, thanks for all your responses - hallelujah!! It works & I've completed the tasks now. i think the issue was the response I was getting back suggested a problem with the ID but actually that wasn't what I was doing wrong.

Onwards and upwards.