Use a Retina Image for Higher Resolution Displays HELP

Use a Retina Image for Higher Resolution Displays HELP
0

#1

Tell us what’s happening:

I actually humanly can not comprehend why this code will not register.

Your code so far


<style>
  img { height: 100px; width: 100px;}
</style>

<img src="https://s3.amazonaws.com/freecodecamp/FCCStickers-CamperBot200x200.jpg" alt="freeCodeCamp sticker that says 'Because CamperBot Cares'">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-principles/use-a-retina-image-for-higher-resolution-displays


#3

sorry my first response was incorrect.

try this instead. (your code is fine, but the challenge check may be picky about what it expects).

  img { 
      width: 100px;
      height: 100px;
  }

#4

My code won’t work :frowning: Please tell me what is wrong with my answer:

img { width: 100px; height: 100px; }

freeCodeCamp sticker that says 'Because CamperBot Cares'


#5

To me it works and passes, so no clue what is happening


#6

I mean if i just paste your code into the CSS style, it works


#7

Hi! Thanks for the response! :slight_smile: I tried to use a different browser and the code works :slight_smile: