CCS - Size Your Images

Tell us what’s happening:
I have formatted my code exactly as the lesson and video direct you to but the image still wont change to the required 100px. It requires 100% browser zoom and I have that set as well. I’m not sure what the issue could be and need some help.

Your code so far

<link href="" rel="stylesheet" type="text/css">
smaller-image {
  width: 100 xp;
.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_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Size Your Images

Link to the challenge:

It seems like you have a little typo, xp is not the px

Thank you for that correction! although the issue still isn’t solved… when I run the tests it still tells me “Your image should be 100 pixels wide. Browser zoom should be at 100%.” I appreciate all the help.

Another issue, in CSS, if you want to select a class, you have to start with a ., what do you see wrong in this quote.

Another thing, you cannot have a whitespace in between your value and units. ex:

/* DONT */
element {
  height: 200 px;

/* DO */
element {
  height: 200px;

It should be “.smaller-image” thankyou! that fixed it! Note taken.

1 Like