Prioritize One Style Over Another Lesson stalled

Tell us what’s happening:

I am very confident that I have done as directed in this lesson, yet the text does not change color to pink. This is frustrating. Is it my computer that is the problem or it is a deliberate effort of frustration by the course instructors?

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.132.

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

There shouldn’t be two curly brackets after .pink-text. remove one of the consecutive curly brackets and insert a curly bracket before .pink-text.

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

notic ehow i closed the body by adding a curly bracket before the class .pink-text.

You are right! I guess I have been staring into the screen too long for me to miss that. I was getting frustrated. Thank you!

1 Like