Override Styles in Subsequent CSS 5

Override Styles in Subsequent CSS 5
0
#1

Tell us what’s happening:
I’m completely stumped on this one. I tried doing what the video said, and it didn’t work.

Your code so far


<style>
  body {
    background-color: black;
    font-family: monospace;
    color: green;
  }
  .blue-text {
    color: blue;
  }
  .pink-text {
    color: pink;
  }
</style>
<h1 class="pink-text blue-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.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/override-styles-in-subsequent-css

0 Likes

#2

Within the Style tags, the blue-text class should be defined after the pink-text class. Try changing the order of these classes accordingly. The subsequent exercises make this point clear.

0 Likes

#3

Thank you! I didn’t realize that it had to be under the pink-text class. The video I watched may have shown that, but I didn’t pay much attention to it as it was a confusing video.

0 Likes