Writing correct code, still tests giving error

https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/adjust-the-hue-of-a-color/
this challenge is giving error for cyan, even though I have typed it correctly.

Please see if anyone can help.

Can you please post your code of what you have tried, so we could figure it out.

Here it is.
Thanks. :slight_smile:

<style>
  body {
    background-color: #FFFFFF;
  }
  
  .green {
    background-color: hsl(120, 100%, 50%);
  }
  
  .cyan {
    background-color: hsl(180, 100%, 50%);
  }
  
  .blue {
    background-color: hsl(240, 100%, 50%);
  }
  
  div {
    display: inline-block;
    height: 100px;
    width: 100px;
  }
</style>
  
<div class="green"></div>
<div class="cyan"></div>
<div class="blue"></div>

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

1 Like

I placed your code and did the test and it passed the test, what is the error you get when you run the test.?

I get this error: The div element with class cyan should have a background-color of cyan.

thanks for the tip!

I posted for the first time so I didn’t know.

Try refreshing your page (F5) and rerun the tests. Also, what browser are you using? Try Chrome if you are not already using it.

Okay . I am using firefox at present, I’ll open this in chrome then.
Thanks.