Guys I'm having a hard time completing this CSS task

Tell us what’s happening:

Can someone tell me what’s wrong here, please! I’m unable to complete the following task despite trying everything. I even cleared my browser’s cache but to no avail. Here’s the task:

"Create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide."

Any help will be highly appreciated!

Your code so far

<link href="" rel="stylesheet" type="text/css">
.smaller-image {
  widhth: 100px;
.red-text {
  color: red;
h2 {
  font-family: Lobster, monospace;

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

<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" 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="/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 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36.

Challenge: Size Your Images

Link to the challenge:

Typos’ hell :stuck_out_tongue:

.smaller-image {
widhth: 100px;

1 Like

OMG I feel so freaking dumb right now! Thanks a lot kind stranger. You have no idea how much time of my time that small typo consumed. Thank you again. Truly appreciate it!

1 Like