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 trialBobby Stanton
5,776 PointsNav items: "Home" will go white to dark; but won't stay dark when on page; "About" stays dark all the time. Suggestions?
The nav bar was working fine, but then I started playing around with it and other aspects of the site to change it to a different concept. Somehow, I messed up the nav bar. If I hover over "Home," it will turn from white to dark. If I click on it, it goes to the page, but returns to white, so it makes it appear that I'm not on the Home page. The nav item, "About" stays dark all the time, no matter if I hover, am on the page, or off of it. https://w.trhou.se/7qp9nhjneu
2 Answers
Ryan Field
Courses Plus Student 21,242 PointsHi, Bobby. It looks like the about page has the class selected
on both your index and about pages, which is why the about link is always dark. You'll have to move the selected
class to the index link on the index page.
Bobby Stanton
5,776 PointsLike a charm, Ryan! thank you. Nick keeps telling me in the videos to "play around with the code." I listen and I get myself into trouble!! Ha! Seriously, thanks very much. Bobby