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 Customizing Colors and Fonts Use Classes in CSS

kevin silva
kevin silva
1,917 Points

My 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; }

erikanoemiorozco
erikanoemiorozco
1,318 Points

Sometimes 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.

kevin silva
kevin silva
1,917 Points

I 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
kevin silva
1,917 Points

found the problem. was missing a coma. Thank you for the help though!