Problem Completing Size Your Image

Problem Completing Size Your Image
0

#1

Below is my code for the exercise Size Your Image. My browser is the latest version of google chrome and the zoom is at 100%. I don’t know what I’m doing wrong. Any and all help would be greatly appreciate!!
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>
<main>
  <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>

#2

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3

I tried your code and it passed, what error does it give…? Maybe reset your code and try again or clear the cache and try again


#4

I found out the problem. I had a custom scaling option on for my monitor and it was affecting the pixel width of the image. I turned the custom scaling off and the code passed. Thank you for the help!