Size image in css

Tell us what’s happening:

…please]
i need help,im having problem with the width:100px may i know where the issue is?

Your code so far


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

h2 {
  font-family: Lobster, monospace;
}

p {
  font-size: 16px;

.smaller-image { width: 100px; } .red-text {color: red;}





  
  font-family: monospace;
  

</style>

<h2 class="red-text">CatPhotoApp</h2>
<main>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat".alt="A cute orange cat lying on its back."class="smaller-image"></a>


<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<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>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/71.0.3578.141 Safari/534.24 XiaoMi/MiuiBrowser/11.4.3-g.

Challenge: Size Your Images

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/size-your-images

your css has various syntax errors
there are missing graph parenthesis

check your p selector
and you have a rule outside of any selector, the font-family: monospace one, it can’t be there, it was inside something and you need to put inside that selector again or delete it

the selector for class .red-text is present twice, delete one of those

there is also a random u on the first line of code that shouldn’t be there

you may need to reset your code
remember that you just need to do this:

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

…ok i will check it right away…

Hi,

.red-text {
color: red;
}

h2 {
font-family: Lobster, monospace;
}

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

.smaller-image {
width: 100px;
}

This is the CSS that might help you.