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 Build a Simple Website Styling Content Finishing the CSS

Jamie Kerr
Jamie Kerr
535 Points

CSS ID Selector

The editor is not accepting the following css selector for the copyright id. I can't see anything wrong with it. What am I doing wrong?

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

4 Answers

William Dahl
William Dahl
7,829 Points

Hi, You need to prefix an id selector with a # symbol.

Take a look at here for reference: http://www.w3schools.com/cssref/css_selectors.asp

Jamie Kerr
Jamie Kerr
535 Points

Thanks for the response William. I have put the # symbol before copyright but the treehouse editor doesn't recognize it. It also got removed for some reason when I posted the discussion.

William Dahl
William Dahl
7,829 Points

I am not certain why the editor doesnt recognise it. Looking at your code, you need a semi-colon after "8px". This will separate the two commands. The editor should then understand?

Jamie Kerr
Jamie Kerr
535 Points

Thanks, still no joy. There seems to be other posts by people who have had the same problem with the # not being recognised. I'll investigate.