Adjust the Tone of a Color of nav element

Tell us what’s happening:
There is an error:The nav element should have a background-color of the adjusted cyan tone using the hsl() property. still I used hsl() in the nav and the color also changes then what is the problem that I can’t do it.

Your code so far


<style>
  header {
    background-color: hsl(180, 90%, 35%);
    color: #FFFFFF;
  }
  
  nav {
    color:inherit;
  background-color:hsl(180 80% 25%);
  }
  
  h1 {
    text-indent: 10px;
    padding-top: 10px;
  }
  
  nav ul {
    margin: 0px;
    padding: 5px 0px 5px 30px;
  }
  
  nav li {
    display: inline;
    margin-right: 20px;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
</style>
  
<header>
  <h1>Cooking with FCC!</h1>
  <nav>
    <ul>
      <li><a href="">Home</a></li>
      <li><a href="">Classes</a></li>
      <li><a href="">Contact</a></li>
    </ul>
  </nav>
</header>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color

Omit color:inherit; from nav elements css properties. I didn’t understand why did you put that.

I have done to broo…

background-color: hsl(180, 80% 25%); use this line , you just forget to add “,” after hue value. and remove color: inherit; line also.

do this but not working

the " , " spacing was missing.

correct:

nav {
background-color:hsl(180, 80%, 25%);

1 Like

Tell us what’s happening:

I believe my code is correct but the website won’t accept it. I think there is probably some thing extra that I am supposed to do to make it work but I don’t know what it is.

Your code so far


<style>
  header {
    background-color: hsl(180, 90%, 35%);
    color: #FFFFFF;
  }
  nav {
  background-colour: hsl(180, 80%, 25%);
  color: #00FFFF;
  }
  h1 {
    text-indent: 10px;
    padding-top: 10px;
  }
  
  nav ul {
    margin: 0px;
    padding: 5px 0px 5px 30px;
  }
  
  nav li {
    display: inline;
    margin-right: 20px;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
</style>
  
<header>
  <h1>Cooking with FCC!</h1>
  <nav>
    <ul>
      <li><a href="">Home</a></li>
      <li><a href="">Classes</a></li>
      <li><a href="">Contact</a></li>
    </ul>
  </nav>
</header>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color/

check your spelling please on the nav {}

Oh I didnt see that. Thank you @ZokiMar

Use semicolon between them
The correct answer is,

nav {
color:inherit;
background-color: hsl(180, 80%, 25%);
}