question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It says that h2 element should be blue. I'm sure the code is right!!

See original GitHub issue

Challenge use-css-selectors-to-style-elements has an issue. User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 bug_report Firefox/53.0. Please describe how to reproduce this issue, and include links to screenshots if possible.


<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>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
systimoticcommented, Sep 4, 2017

Sorry for the trouble everyone, thanks for looking into this. We recently fixed this (https://github.com/freeCodeCamp/freeCodeCamp/pull/15775), so I’m closing this issue. If you think I’m wrong in closing this issue, please reopen it and add further clarification.

Happy coding!

0reactions
CMexpressITcommented, Jun 1, 2017

Aren’t still not working in both!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your h2 element should be blue error - HTML-CSS
I was told to change the color of the text CatPhotoApp into blue and I did but it kept telling me “Your h2...
Read more >
Error in CSS style elements: "Your h2 element should be blue ...
Your h2 element should be blue. Again and again. :(( I dont know how to fix it. Plz help me!! html · css....
Read more >
FreeCodeCamp/Help - Gitter
Your h2 element should be blue. Ensure that your stylesheet h2 declaration is valid with a semicolon and closing brace. Make sure all...
Read more >
How To Select HTML Elements Using ID, Class, and Attribute ...
To start working with id , class , and attribute selectors, you will first set up the HTML and CSS code that you...
Read more >
How and when to use the CSS :has selector - LogRocket Blog
The CSS :has() selector allows us to style an element based on its descendants or any succeeding elements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found