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

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

I wrote the following code, but it does not seem to work.

copyright {

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

4 Answers

Andrew Thomas
seal-mask
.a{fill-rule:evenodd;}techdegree
Andrew Thomas
Front End Web Development Techdegree Student 14,698 Points

Put a hash (#) symbol before the copyright in CSS. All id selectors in CSS must be preceded by a hash symbol, otherwise CSS treats them as an element.

I did, I wrote:

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

I did, I wrote:

#copyright {
    border-top: 8px; 
    color: #2A0400;
}
Tom Mertz
Tom Mertz
15,254 Points

Hi Farrukh,

If you wanted a border that is just the top with 8px thick, solid, and a color of #2a0400 the code would be:

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

By itself the color property changes the color of font only.

Let me know if you got it working,

Tom

Thank you, Tom!

copyright {

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