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 trialanthony woods
8,208 Pointsneed some help
I dont know if im getting this backwards or just doing it wrong.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
p {
color: #000;
}
<nav>
<a> {
color: #fff;
}
</a>
</nav>
4 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Anthony,
It looks like you're trying to put some html tags in your css instead of a proper css selector.
It wants you to select the links within the nav element. You would use a descendant selector for this.
nav a
John Steer-Fowler
Courses Plus Student 11,734 PointsHi Anthony,
In your code above you are writing html into a css file which won't work.
Try taking out the html tags <> and write it like the others above it.
Post your code again if you still can't get it
Ben Brenton
266 PointsNot quite sure what you are referring to here, a bit more detail would certainly be helpful. However, from what I can see, you have entered some HTML tags into the bottom of your CSS file. When adding properties to the tag <nav>, you just use the word 'nav' in css, providing it exists in the HTML. Also you have done the same with your links (<a>) but this in fact duplicated at the top of the page anyway so it is not needed.
If this doesn't answer your question please provide more details and I will be happy to assist.
Jason Anello
Courses Plus Student 94,610 PointsHi Ben,
Usually a forum question is linked to the piece of content it relates to. You can check over in the right column and there's a "related content" section which links to the code challenge that this question is referring to.
Ben Brenton
266 PointsI understand that, Jason, but I do find it is better conduct for posting when the poster includes a brief description of their problem within the post. The related content should really be secondary to the post itself.
anthony woods
8,208 Pointsthanks guys i got it. The way jason explained it really helped.