Overriding styles

Tell us what’s happening:
added the !important tag but it says i haven’t added it text is pink every thing is checked done except Your pink-text class declaration should have the !important keyword to override all other declarations.

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 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/override-all-other-styles-by-using-important

Get rid of the space between the !important and the ;. It’s messing up the test.

1 Like

thank you so much that was driving me up a wall :slight_smile: