Problem with CSS class: Size Your Images

Tell us what’s happening:
Hey. I wonder if theres something wrong with my code. I put excatly the way it was in the spoiler video but it did not work out.

First: So the system tells me to put class: “smaller-image” to my img element. Check.
Second: Cat image should be sized 100px using CSS width property. Check.

Me: All check.
System: Error

What is wrong?

If you could help me out with this it would make world to me. thx in advance!

p.s all links removed so I can post

Your code so far


<link *link removed so I can make a post*
<style>
  .smaller-image: {
    width: 100px;
  }
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, monospace;
  }

  p {
    font-size: 16px;
    font-family: monospace;
  }
</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" src="*link removed*" 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>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36.

Link to the challenge:
link removed

Figured it

class:“smaller-image”

should have been:
class=“smaller-image”

Is always good to check and recheck the code we wrote. It happens all the time, and no matter what you will find sometimes minimal bugs like this that can take a few hours (maybe days) until you find them, been there.

Nice you find it yourself. Keep going! :man_technologist: