I guess I've done everything exactly the same as I was asked to do it. But it is still showing the error when I run the file, it says "The border around your img element should be green. What should I do?

Tell us what’s happening:

Your code so far

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

h2 {
  font-family: Lobster, monospace;

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

.smaller-image {
  width: 100px;
  border-color: green;
  border-width: 10px;
  border-style: solid;


<h2 class="red-text">CatPhotoApp</h2>
<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>

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44.

Challenge: Add Borders Around Your Elements

Link to the challenge:

I ran your code and it worked fine.

1 Like

It shows the error no matter much I run the program.

Thanks, though.

Oh sorry, I guess you have to skip it then. But you still got what they wanted to teach you so that’s good :+1:

1 Like

You know I’ve been dealing with the same issue in the previous tests too. I thought maybe I’m doing it the wrong way lol XD. But now I know that I’m doing just fine. Thanks for helping me out man.

Your code is passing for me as well.

If you have something like a dark mode/dark reader extension installed you may have to disable it. It will mess with the CSS. Otherwise, try in a different browser.

1 Like

By disabling the dark mode, it worked!

1 Like