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

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

hi,I have problem with this question that says add hover inside navigation link.I think it is correct .

could please tell me,the correct answer

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

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

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

h1{color:#fff}
h2{color:#fff}
p{
color:#000}
nav a{color:#fff}
nav li,nav li:hover{color:#32673f}

3 Answers

Kallil Belmonte
Kallil Belmonte
35,561 Points

You are not applying the style to the link element inside the nav.

You must change your last line to:

nav a:hover{color:#32673f}

'but last question said that have to change nav a to white,and I can't change color of nav a to color:#32673f,my challenge is first part of php.

Kallil Belmonte
Kallil Belmonte
35,561 Points

Hi nazanin,

I don't understood the phrase "my challenge is first part of php.", but the Challenge Task 3 of 4 ask you to make the color of link elements inside the nav be #fff.

And the Challenge Task 4 of 4 ask you to change the color of link elements inside the nav, with Hover state, to #32673f

Nazanin,

Right now U are adding hover to your list item element li.

To add hover to your link u have to add it to your link element a

so the correct solution shoud be:

nav a:hover {
  color: #32673f;
}

but last question said that have to change nav a to white,and I can't change color of nav a to color:#32673f,my challenge is first part of php.