Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Finishing the CSS Quiz - Copyright Issue

I'm working on the Finishing the CSS Quiz, and it keeps telling me I'm wrong, but I have the video opened right next to it and the code in the video is the same as what I wrote... Can anyone tell me what I'm doing wrong? Am I missing something??

The quiz asks:

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

So I write:

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

And the message I get is:

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

But isn't that what I'm doing? I'm confused.

5 Answers

Gareth Redfern
Gareth Redfern
36,217 Points

Hi Bryna, in your code you have an additional : and need a semi colon at the end you have written:

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

Notice the additional colon after solid and you have used a colon at the end of #2A0400

Your code should read:

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

Hope that helps.

Ahh! In my post above it doesn't show that I included the hash before the copyright, but that's what I wrote.

Remove the colon after solid and the color, then, end it with a semicolon instead.

There should only be one semicolon at the end, nothing in the middle.

I just finished this code challenge, this is what I put in and it was correct.

#copyright {
  border-top: 8px solid #2A0400;
}
James Barnett
James Barnett
39,199 Points

@Bryna -

For reference here is the code from your OP:

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

2 things to remember:

  • All CSS rules must end with a ;
  • A : is only used to start a CSS rule

So after those 2 issues are fixed, your CSS will work.