Need help moving on from 3rd CSS exercise

Tell us what’s happening:
I’m being asked to make a style block element that makes my h2 elements blue, which I believe I’ve done correctly, but the program doesn’t want to pass me. I’m stuck! Help!

Your code so far


<style>
h2 {
color: blue;
}
</style>


<h2>CatPhotoApp</h2>

<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>

Your browser information:

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

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

Your code is passing for me.

If you have a dark mode extension installed disable it, as it can mess with the colors on the page. If that is not it, try resettings the challenge and maybe clear your cache and cookies.

1 Like

Thank you so much! Disabled my dark mode extension, and it worked perfect! I would have never considered that, so thank you so much for taking the time! <3

1 Like

No problem, glad to help.

It is a fairly common issue. We may end up adding a warning at the beginning of the curriculum about extensions. We really should.

Happy coding.

Edit: Oh and we have a dark mode build in. If you go to your profile settings you can enable it.

1 Like

I’m a dork- I had dark mode enabled in an extension AND on the site! How silly!