Basic CSS: Prioritize One Style Over Another Sometimes your HTML elements will receive multiple styles that conflict with one ano

Tell us what’s happening:

Not sure if I missed something but won’t let me pass.

Your code so far


<style>
body {
  background-color: black;
  font-family: monospace;
  color: green;
}
.pink-test {
  color: pink;
}
</style>
<h1 class="pink-test">Hello World!</h1>

Your browser information:

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

Challenge: Prioritize One Style Over Another

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

I’m afraid it’s just a matter of a typo.

- pink-test
+ pink-text

It happens sometimes, and a set of fresh eyes always helps.

Oh no wonder. Thank you!!

1 Like