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

HTML How to Make a Website Adding Pages to a Website Add a New Page

Furkatjon Ikramov
Furkatjon Ikramov
553 Points

now when i hover over the portfolio and about its not hovering (not changing the color) on the page

now when i hover over the portfolio and about its not hovering (not changing the color) on the page

Furkatjon Ikramov
Furkatjon Ikramov
553 Points

nav a, nav a:visited { color:#fff; } nav a.selected, a:hover { color: #32673f; }

2 Answers

YASH NAIR
YASH NAIR
3,463 Points

for it to hover you have to write nav a:hover plus the u made a typing error in in the nav a.selected as it should be nav a:selected

Orlando Benitez
Orlando Benitez
1,426 Points

My code is as follows and I have the same issue:

/* nav links */ nav a, nav a:visited { color: #fff; }

/* selected nav link color */ nav a: .selected, nav a:hover { color: #32673f; }

Orlando Benitez
Orlando Benitez
1,426 Points

I fixed it using the following code:

/* nav links */ nav a, nav a:visited { color: #fff; }

/* selected nav link color */ nav a.selected, nav a:hover { color: #32673f; }

Changed nav a: .selected to nav a.selected under the /* selected nav link color */ section