Code not working for some reason

Tell us what’s happening:

Your code so far


<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.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;
}
</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_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.

2 Likes

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