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 trialMichael Cohen
355 PointsHow do I write this correctly to "style elements inside the nav.."
This is really not explained clearly.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a.selected, nav a:hover {
color: #fff;
}
p {
background-color; #fff;
color: #000;
}
2 Answers
Tyrell Jentink
8,415 PointsThey are looking for you to specify the selector that would select the nav element. CSS selectors are the part that go before the curly braces, {}. SO, (Without blatantly giving the answer) if I wanted all of the images on the page, I would use:
img {
}
The question may further ask you to style the nav element in a particular way... That would go inside the curly braces.
Michael Cohen
355 PointsOk, but none of it works. Why is that?
Tyrell Jentink
8,415 Points::Sigh:: I'm apparently bad at being subtle...
I don't see a
nav {}
declaration anywhere in your code.