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
Simon Jones
556 PointsBuild a Simple Website > Styling Content > Finishing the CSS - Challenge
I am stuck on the first part of this test where you are asked to:
Select the copyright using an ID selector and give it a solid top border that is 8 pixels thick and has a color of #2A0400.
I have entered the following into the css sheet:
#copyright {
border-top: 8px #2A0400;
}
But it is telling me this is incorrect, with the note:
Remember, to select an ID, use the '#' character followed by the ID of the element you want to select.
I'm sure that is what I am doing! Am I doing something obviously wrong here? Any help would be appreciated as I can't go any further at the moment.
Thanks.
10 Answers
Omar Zeidan
8,893 Points@Simon
Try this :
#copyright {
border-top: 8px solid #2A0400;
}
because they need it to be solid , try put solid to be sure that it`s complete and completely correct .
Maciej Lasota
311 PointsI have similiar problem: actually I have:
#copyright {
border-top: 8px solid: #2A0400;
}
tag copyright has a pink color and still I have info: "Remember, to select an ID, use the '#' character followed by the ID of the element you want to select."
Simon Jones
556 PointsNot sure where it went but when I posted I did put a '#' before copyright
Joseph Hall
10,865 PointsBy just saying copyright{border-top:8px #2A0400;}
The css thinks that you are selecting the copyright html element (which there is none).
By using the # sign, you are selecting the div with an ID of copyright. Use a . for a class.
Simon Jones
556 PointsThanks for the reply.
In the next post I did mention that I put # before copyright to select the ID, so it actually looks like
#copyright{border-top:8px #2A0400;}
So if # is the ID selector then the above line should be correct?
Simon Jones
556 PointsThanks Omar, that's what I missed!
Omar Zeidan
8,893 PointsWelcome Simon , my pleasure and good luck ;) ^_^
James Barnett
39,199 PointsMaciej -
Do you see something different between your code at the code Omar posted?
Remember: Indent each line of code by 4 spaces, so the forum will format the code correctly.
Mod Note: In general, you shouldn't post some code which you are having trouble with in the middle of a thread which was started by someone for an issue they are having.
Basic Rule of Thumb: your code, your issue, your thread
Maciej Lasota
311 PointsOoo :) Now I see thank you I will remember that rule
James Barnett
39,199 PointsMaciej - Glad you got it figured out
Let us know here on the forums if you have any more questions.