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

CSS color not displaying right on class. What am I doing wrong?

In how to make a website, section CSS colors & fonts, video 2. Nick shows his html and css. I think I have it copied right, however, on his video when he refreshes the screen his project has green for the selected page he is on & the one he hovers over. My hover feature is working but my selected page is not green as it should be. Why? What did I do wrong? See line 17 on HTML & main.css lines 33-39.

My html:

https://w.trhou.se/tk7caofqpe

My css:

https://w.trhou.se/n7ayrm8a6i

1 Answer

Steven Parker
Steven Parker
243,656 Points

This particular bit of code seems OK. But this is clearly not the whole code.

Perhaps you can make a snapshot of the workspace and provide the link to it.