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 trialkevin silva
1,917 PointsMy nav codes won't work
I'm pretty sure I've written them properly. I open up the browser and the last three codes aren't working
nav { background-color:#559a6b; }
nav a,nav a:visited { color:#fff; }
nav a.selected nav a:hover { color:#60206a; }
body { background-color: #fff; color: #999; }
kevin silva
1,917 PointsI narrowed down the problem to just one issue. the nav a.selected nav a:hover { color:#60206a; } isn't working properly the text stays white.
kevin silva
1,917 Pointsfound the problem. was missing a coma. Thank you for the help though!
erikanoemiorozco
1,318 Pointserikanoemiorozco
1,318 PointsSometimes if you are using frameworks like Bootstrap or something, you need to override the tags ... to know if this is happening try giving an id to the body tag and then adding the background color to such id.