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

My css code for adding color to anchor element or nav element is not working. It is similar to instructor

CSS code not working for adding color to anchor or nav element

None of things are working

background color - hovering

a {
  text-decoration: none;
}

img {
max-width: 100%;  
}


h3{
 margin: 0 0 1em 0;

}


#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%; 
}

#logo {
 text-align: center;
 margin: 0;
}

a{
 color: #6ab47b;
}

header{
  background: #6ab47b;
  border-color: #599a68;
}

h1, h2 {color: #fff; }

nav {background: #599a68;}

nav a, nav a:visited { color: #fff; }

nav a.selected , nav a:hover { color: #32673f; }

body{ background-color: #fff; color: #999; }

2 Answers

It's hard to say what is going on just looking at your CSS. The syntax looks fine to me. Do you have the proper classes assigned to your HTML elements?

Yes did as the instructor mentioned , i have understood the code but it is not reflecting on my project in workspace

If you post both your HTML and CSS files I might be able to help you. Wrap your code with three back ticks (```) a line above and below your snippet. That will make it easier to read. Click on the Markdown Cheatsheet link below the comment box for more info.