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

HTML How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

Mitchell Kienhuis
Mitchell Kienhuis
2,507 Points

I don't see what i'm doing wrong here?

Can someone help me get back on the right track?

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
color: #fff;
}
p {
color: #000000;
}
nav a:{
 color: #fff
}

nav a.selected, nav a:hover{
color: #32673f;
}
Mitchell Kienhuis
Mitchell Kienhuis
2,507 Points

The .selected part I put there, just to try and work out a solution..

Chris Davis
Chris Davis
16,280 Points

It looks like your syntax the nav a selector is incorrect. You should be selecting...

nav a {

}

and then for the hover class...

nav a:hover {

}

hope this helps :thumbsup:

one mistake at nav a:{ color: #fff } need add the ; thing :). and looks like nav a:{ color: #fff; }

2 Answers

Hey Mitchell,

Remove the colon next to your nav a selector. That is not a correct selection unless you are going to follow that up with a pseudo class such as hover. You also need to remove nav a.selected for the challenge to pass.

Working solution:

nav a { 
  color: #FFFFFF;
}

nav a:hover {
  color: #32673F;
}
Chris Davis
Chris Davis
16,280 Points

Gotta stop adding my answers as comments! Lols!

It looks like your syntax the nav a selector is incorrect. You should be selecting...

nav a {

}

and then for the hover class...

nav a:hover {

}

hope this helps :thumbsup: