Prioritize One Style Over Another?

Tell us what’s happening:

It still says: Your h1 element should be pink.
I cant find out, what’s wrong with my code.

Your code so far


<style>
  body {
    background-color: black;
    font-family: monospace;
    color: green;

    .pink-text {
      color: pink;
    }
  }
</style>
<h1 class="pink-text">Hello World</h1>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/prioritize-one-style-over-another

Your pink-text style is currently inside your body style.

1 Like

Thank you this fixed the problem for me.:grinning:
:grinning: