I am having problem with CSS image size i think i have done the needful but it is still telling me to make my image 100px

Tell us what’s happening:

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
.red-text {
  color: red;

h2 {
  font-family: Lobster, monospace;

p {
  font-size: 16px;
  font-family: monospace;
} .smaller-image{width:100px;}

<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="https://bit.ly/fcc-relaxing-cat" 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="https://freecatphotoapp.com/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.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 UBrowser/ Safari/537.36.

Challenge: Size Your Images

Link to the challenge:

You should add the class of smaller image after the img src attribute not before .

Your css should be like in this format.

.smaller-image {
width: 100px;

Do this and check and your problem will be solved

It does not make any difference where the class attribute and its value is added.

@Dajan Your code passes for me. What browser are you using?

1 Like

I have the same code as him but it won’t run and my browzer is chrome could it be the same problem

Hello. I’m having the same issue where my code will not run. I’m using Safari.

It’s a known bug with Safari.

We have a fix in progress but it might take a little time before the site is updated with the fix. Sorry for the inconvenience.