Basic CSS: Size Your Images .Please help me,I dont know why it is wrong

Here’s the link of the question:

Create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide,I put:

.smaller-image { width: 100px; zoom: 100%; } ...

But it failed.Can anyone help me out?Thanks a lot!

You don’t need zoom:100% in your style. The instructions just say zoom:100% because some people could be zooming in the browser to view contents bigger.

Then apply your newly created class to the cat image.

1 Like

Please do not change the topic category. I changed it to HTML-CSS, because the questiont is related to HTML-CSS.

Thank you.

Even with the zoom setting (shimphillip is right, you don’t need that).

It worked for me. Did you apply the class to your img tag? Can you show what that looks like?

1 Like

Thank you,I’ve deleted zoom and apply it to the image :
but still cant pass the test,dont know why:confounded:

Can you please post the whole code you are trying to use?

Here’s my code,thank you!

<link href="" rel="stylesheet" type="text/css">
  .red-text {
    color: red;
  .smaller-image {
    width: 100px;

  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>

This looks fine in my browser. And it passes the tests.

Perhaps you need to reset your zoom level in your browser.

1 Like

Your code looks okay, what does that error say .?

1 Like

So that passes just fine.

Clear your cache and restart your browser. If you’re not using Chrome, try chrome.

1 Like

Sorry,I am new to it.I will keep it in mind,thanks!

it say:
// running test
Your image should be 100 pixels wide. Browser zoom should be at 100%.
// tests completed

You can try what @Tirjasdyn has suggested, chrome works better for FCC

wow,it works!I just tried 360 browser and it passed.thanks very much!:kissing_heart:

Thanks a lot!You also solved my solution :star_struck:

Thanks!It turns out to be the browser problem.

1 Like