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

Timothy Winters
Timothy Winters
12,926 Points

Finishing the CSS ID Selector

My code for this example is #copyright {border-top:8px solid:#2A0400;} and I keep getting the error about not having the ID selected. It turns the #copyright selector purple when I type it in the editor. Is it supposed to do that?

2 Answers

James Barnett
James Barnett
39,199 Points

Timothy Winters - You are missing a space between your property and your value also you have unnecessary colon in the middle of your value.

Here's a quick refresher on the anatomy of a CSS selector.

I think you are referring to the "Code Challenge" at the end of the "Styling Content" section: I got stuck there too because even though I write the code correctly (even comparing it to the one in the video), it keeps saying that to select an ID I need to use the pound sign. I will be glad to know if it's a problem in the page or if I'm doing something wrong.

Thanks in advance.

PS: I leave a screenshot so you can see what I'm saying. I tried to look for the forum rules but I couldn't find it; I don't know if you can post images, so sorry if I did something forbidden. https://www.dropbox.com/s/5k0ky0x8b927em2/Screenshot%202013-11-05%2019.45.02.png

James Barnett
James Barnett
39,199 Points

Alan Vazquez -

You forgot to specify the type of border in this case solid.

Thank you very much!!! For a moment I thought I could place a border without needing to specify the type of border. Thank you very much, James!