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 trialRuchir Mishra
Courses Plus Student 785 Pointscan 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.
2 Answers
Luke Glazebrook
13,564 PointsHi 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
Ruchir Mishra
Courses Plus Student 785 PointsYea..thanks! got it now!
Muhammad Mohsen
Courses Plus Student 10,843 PointsMuhammad Mohsen
Courses Plus Student 10,843 PointsHi Ruchir,
Can you post the question please :)