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 trialBrendan Wales
428 PointsI feel as though I am adding the correct ID selector, but it say I am not. I entered: #copyright { border: 8x 0 0 0; color: #2A0400; }
I am confused by this.
8 Answers
Ashley Kelley
Courses Plus Student 10,554 PointsHi Brendan,
Can you kindly give us some more information about whether you're referring to a particular code challenge and what it is you're trying to do etc. We'll be able to help you then.
Ashley :)
Julie (Howard) Lewis
Front End Web Development Techdegree Graduate 25,921 PointsYou are adding the proper ID selector, but it looks like the properties you're applying are not correct.
You need to style the top border only (using the "border-top" property), make the top border solid, fix the typo (8x => 8px), and delete the zeros (we're only working with the top border, so you don't need to worry about specifying values for the other three sides)
Brendan Wales
428 PointsHi Julie, i entered this and it is still not working:
copyright {
border-top: 8px; color: #2A0400; }
The system is coming back saying this: Bummer! Remember, to select an ID, use the '#' character followed by the ID of the element you want to select.
Farrukh Karimov
10,989 PointsI'm having the same issue
Tom Mertz
15,254 PointsHi Brendan,
Remember that the color property is reserved for font only. If you wanted to created a border color you would need to use border-top-color;
Just why not use the shorthand and save some time? You can specify the width, style, and color one right after the other in css like this:
#copyright {
border-top: 8px solid #2A0400;
}
Julie (Howard) Lewis
Front End Web Development Techdegree Graduate 25,921 PointsThat's an interesting point, Tom. In general, the color property refers specifically to font, however: "If an element's border color is not specified with a border property, user agents must use the value of the element's 'color' property as the computed value for the border color." from the W3 So essentially, if you don't give the border color a value, it will default to the text color... which is why this task will pass whether or not to you specify color as color or color at border color. However, your solution is definitely "best practices" in terms of code writing because it's cleaner, more concise and does not repeat itself.
Brendan: The key thing you're really missing is making the border solid.
Tom Mertz
15,254 PointsOh interesting, thanks for the tip! I still think being explicit in the code is a good idea though.
Julie (Howard) Lewis
Front End Web Development Techdegree Graduate 25,921 PointsTotally agree. In this instance it happens to work out, but using the explicit property/value pair is 100% the best way to go.
Jordan Birnholtz
338 PointsHey Brendan,
I had the same problem. I listened to Tom and Julie and tried:
copyright {
border-top: 8px solid #2A0400; }
And it worked. It seems to me that Team Treehouse is returning the wrong error message. Good luck!