Size Your Images

Hello,

I am not sure what I did wrong, actually thought about creating a 2nd just for this. These are the directions:
Your img element should have the class smaller-image.
Your image should be 100 pixels wide. Browser zoom should be at 100%.

My code:

<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;
    font-family: Monospace;
  }
  
  .smaller-image{
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

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

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

try changing your browser to chrome for this one, I was using firefox but it wouldn’t let me. Make sure your page zoom is at 100%

there looks like it’s nothing wrong with the code itself, just some settings in your browser.

I am in Chrome. How do I change zoom on a mac?

Zoom is at 100%, still not getting the code to work.

did you put the class=“smaller-image” inside the img?
if you did then I’m sorry :confused: maybe you should skip it

1 Like

I didn’t use the class= in the img. It works now.

Thank you!

yes! glad It worked :smiley:

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.