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

Muneer Bhamani
Muneer Bhamani
1,825 Points

The question reads: Set the color of anchor elements inside the nav element to white using a hexadecimal value.

The answer I provided is:

nav a { color: #000; }

The Code Challenge system is rejecting my response. Please help!

Muneer

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: #000;
}

nav a {
  color: #000;
}

6 Answers

Hi Muneer, your code is correct but your color is wrong. Remember 0 is the absence of any light, so 000 is basially black. Remember #FFF is white.

Muneer Bhamani
Muneer Bhamani
1,825 Points

Thank you guys, I was going nuts over code itself. These hexadecimal color codes are a nightmare!

Remember Google is your best friend incase you don't have Photoshop or anything like that. Here is a website you can get the color codes from http://www.color-hex.com/

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Fernando Boza is correct. I also use this one: https://color.adobe.com. Also very nice if you're looking for a color theme and can't quite get one working for yourself.

Muneer Bhamani
Muneer Bhamani
1,825 Points

You guys are the best! Thank you!

nav a { color: #fff; }

The above is the answer i provided and it still says i am wrong?