Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!