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 trialFarrukh Karimov
10,989 PointsSelect 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
Front End Web Development Techdegree Student 14,698 PointsPut 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.
Farrukh Karimov
10,989 PointsI did, I wrote:
#copyright {
border-top: 8px;
color: #2A0400;
}
Tom Mertz
15,254 PointsHi 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
Farrukh Karimov
10,989 PointsThank you, Tom!
seouth yon
15,840 Pointscopyright {
border-top: 8px solid #2A0400; }
Farrukh Karimov
10,989 PointsFarrukh Karimov
10,989 PointsI did, I wrote: