Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,559 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,559 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.