Code not working for some reason

Tell us what’s happening:

Your code so far

<link href="" rel="stylesheet" type="text/css">
.thin-green-border {
border-color: green;
border-width: 10px;
border-width: solid;

.red-text {
  color: red;

h2 {
  font-family: Lobster, monospace;

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

.smaller-image {
  width: 100px;

<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="" 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="">
  <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 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15.

Challenge: Add Borders Around Your Elements

Link to the challenge:

Change your code to this.

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;

Hey @TonyMontana, it’s great that you solved the problem, but please don’t just reply with a full blown code answer as it will not help the user asking the question to solve the problem.

Thank you for your understanding :slight_smile:

Your CSS have a couple typos. Instead of thin-green-border, it should be thick-green-border. Then in your code, you have 2 border-width properties.


You are correct but I thought the solution was straightforward since you made some typos. You could easily compare it with your code, and correct the problem on your own. I think , this way makes it easier to understand what the problem was previously.
Hope you dont get me wrong.

1 Like