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

Glitch in Build a Simple Website>Styling Content>Finishing the CSS

For the first code challenge in Finishing the CSS we're supposed to add a border and color to id="copyright" using the stylesheet. However, when I enter

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

I keep receiving a message telling me I need to add a hash tag to style the id, and it won't let me move on.

Is this a glitch in the lesson?

8 Answers

For reference the instructions are:

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.

Remember: Every border needs three values, a size, style, and color.

It looks like you forgot to ...

  • Declare your border's style
  • You set color as a separate property instead of setting a color for the border itself.

You can read more about the syntax of the border property over at Shay Howe's Beginner's Guide to HTML & CSS.

Thanks. I actually caught that after I posted and corrected it, but still get the same error about the "#"

OK, I guess it just needed time, or I was still missing something that I didn't realize. Anyway, it worked now. Thanks again for the help.

It does not work again my code is:

copyright {

border-top: 8px; #2A0400; }

I know this is correct but still get the error:

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

How do i move on?

I had this same problem. one thing I forgot was to chose what kind of boarder I wanted, it called for a solid top border. hope this helps.

You need to remove something...

Wade Jordan - Here on the Treehouse forums we usually try to give a hint first and then wait for the asker to respond.

The goal of these forums is not to get people past a code challenge, instead it's to supplement learning so students of Treehouse solve their own issues.

You'll note that's why several people have responded and explicitly not given the answer.

James Barnett - No problem. I modified my comment. Feel free to delete it and this one. I tried. Thanks.