Basic CSS: Prioritize One Style Over Another Error

<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  
  .pink-text  {
    color: pink;
  }

</style>
<h1 class="pink-text">Hello World!</h1>

The error states that the element should be pink. The element is pink after running the script. What is the problem here?

Hi @baum.jacob20!

Welcome to the forum!

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

Also, make sure your browser is up to date.

It was the Dark Reader extension lol. Thanks!

1 Like