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
Jessica Wright
2,965 PointsHTML Basic Course - CSS Styling Problem
I have completed the Basic HTML/CSS pieces and am on the final challenge for the "Bakin" website.
It tells me to ID Copyright and add the border.
I do this as:
#copyright {
border-top: 8px, solid, #2A0400
}
Then it tells me that I am wrong and to ID the class tag with a #.
? Did I not clearly ID the class id with the #copyright?
4 Answers
Kevin Korte
28,149 PointsWith what you posted there isn't a #, but that might be a forum formatting issue. Make sure you are using the # on the copyright selector.
Also, you forgot your semi colon.
Keith Doyle
25,973 PointsThere also shouldn't be commas separating the border attributes.
border-top: 8px solid #2A0400;
Kevin Korte
28,149 PointsGood catch
rilwan shinaba
Courses Plus Student 3,909 Pointshmmm
Jessica Wright
2,965 PointsClearly I did not write this properly. The point wasn't what was inside of the brackets, the point was I have identified the copyright class ID with a hashtag in my answer, and it is telling me that I haven't.
Kevin Korte
28,149 PointsIf you didn't enter the the syntax correctly, it's going to throw an error. The error messages are not exact. If you put the comma's in there, or forgot the semicolon, it likely told you the copyright id was not set. It has to be perfect or it'll throw an error.
I just went back and did the code challenge and passed on this code.
#copyright {
border-top: 8px solid #2a0400;
}
Jessica Wright
2,965 PointsI logged out, logged back in and copy and pasted what I had earlier placed. It worked. :-)