CSS Border lesson - bug

Tell us what’s happening:
I have gotten to this lesson and the test is telling me to create a thick-green-border around my cat image, and I’ve done that, but according to my tests, my border is not green. It is clearly green so I am not sure why the test is saying my border-color: green; is not green. please help.

Your code so far


<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
  color: red;
}

h2 {
  font-family: Lobster, monospace;
}

p {
  font-size: 16px;
  font-family: monospace;
}

.smaller-image {
  width: 100px;
}

.thick-green-border {  
  border-color: green;
  border-width: 10px;
  border-style: solid;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>
<main>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" 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="https://freecatphotoapp.com/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/84.0.4147.89 Safari/537.36.

Challenge: Add Borders Around Your Elements

Link to the challenge:

I have even tried hex color and that did not work

Are you using any brower extensions that modify the appearance of your CSS such as dark mode?

Hello @brndndev,

I copied and pasted your code in the challenge and it passed the test. I’m not sure what’s happening at your end. How about trying refreshing the browser. I hope this helps.

Happy coding.

Yes, my issue has been resolved by turning off Darkmode. Thank you for your assistance.

2 Likes