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

Tell us what’s happening:
i m not getting it

Your code so far

<link href="" rel="stylesheet" type="text/css">
  .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 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 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0.

Link to the challenge:

Give this image tag, a class called “smaller-image”.
And the use the class selector in your css and set the width to 100px.
Hope that helps.

like this ???
<img class=“smaller-image” src=“” alt=“A cute orange cat lying on its back.”>

Yes, you got it!!!
Now do the css thing i told you.

thank u aditya p for helping

1 Like

I did this but it still doesn t work.

It works for me.
follow below steps, and let me know if it works for you not please.

  1. Create the class called .smaller-image inside the style as follows:
.smaller-image { width: 100px;
  1. For this line of code, add the smaller-image class you created as shown:
    A cute orange cat lying on its back.

I can’t seem to get the image to 100px, someone please help.

1 Like

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.