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

Ruchir Mishra
PLUS
Ruchir Mishra
Courses Plus Student 785 Points

can someone help me with the code for Challenge Task 4 of this challenge? I haven't got it right.

Can someone help with code? I have tried muiltiple times but have not got it right.

Hi Ruchir,

Can you post the question please :)

2 Answers

Hi Ruchir!

The code you will need to complete the challenge is as follows.

nav a:hover {
 color: #32673f 
}

First I selected all of the anchor elements within the nav element. Then I applied a pseudo-class called hover so the stylesheet knows to apply these styles when the anchor elements are being hovered over. Then all you had to do from there was to add the color attribute and give it a value!

I hope this helped out!

-Luke