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

CSS How to Make a Website Customizing Colors and Fonts Use Classes in CSS

Thomas Parker
Thomas Parker
1,950 Points

Question about classes

My "selected" class is not showing up when I refresh my site. I added it (class="selected") after "index.html" in my html and referenced it with "nav a.selected" in my CSS. The hover works so I know it is an issue of how I'm inputting my class but I can't figure out what the issue is. Any ideas?

2 Answers

williamrossi
williamrossi
6,232 Points

Hi Thomas, can you drop your code in here http://fiddle.jshell.net/ and post it back thanks

Thomas Parker
Thomas Parker
1,950 Points

Hey William, Got it all sorted (for some reason it fixed itself, maybe the browser wasn't reloading properly.

Anyways thanks!