Prioritize One Style Over Another: Faulty Checker? (or not...)

Tell us what’s happening:
The problem asks for me to create a pink-text class and add it to the h1 element.
I’m about 95% certain that I don’t have any mistakes in my code (it’s not as if this is a difficult problem), but it keeps telling me that I haven’t got these:

Your should have a pink-text CSS class that changes the color.
Your h1 element should be pink.

Do you see an error in the code? If it’s correct, how do I move on to the next problem if the checker doesn’t realize it’s right?

Thank you!

Your code so far


  body {
    background-color: black;
    font-family: monospace;
    color: green;
  .pink-text: {
   color: pink;


<h1 class="pink-text">Hello World!</h1>

Your browser information:

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

Link to the challenge:

You have a typo :slight_smile:

.pink-text: {
   color: pink;

The colon after the class .pink-text should not be there

Other than that, it is all good

1 Like

Ugh. Yes, thank you. I probably could have looked at it for an hour without noticing it!

1 Like

You are welcome and believe it or not, going through lines of code like a maniac for hours only to find a little baby typo…yep welcome to the life of a programmer :joy:

1 Like