Override All Other Styles by using Important - [help]

Override All Other Styles by using Important - [help]
0

#1

Tell us what’s happening:

I’m not understanding why it won’t let me pass. I have changed the caps, checked the spelling, removed spaces, added spaces, made sure I had semi colons & curly brackets in the right places, yet nope. shrug pls halp.

Your code so far

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

  .blue-text {
    color: blue;
  }
</style>
<h1 id="orange-text" class="pink-text blue-text" style="color: white">Hello World!</h1>

Your browser information:

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

Link to the challenge:


#2

The !important part goes with the same line as the property that you want to make important.

color: pink !important;

#3

Thank you so much! You rock.