Help! Making images appear "retina" exercise


<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'">

Error:
// running tests

Your img tag should have a width of 100 pixels.

Your img tag should have a height of 100 pixels.

// tests completed

Hello everyone, I don`t know what i am doing wrong here, help would be greatly appreciated. Thanks!

I don’t spot any typos or incorrect code. Have you tried resetting the exercise and seeing if there’s just a glitch or odd error happening?

1 Like

Try reformatting your code with each attribute on its own line and see if the tests pass. I’d hate for that to be the case, but the tests are sometimes pretty dumb that way.

1 Like

@chuckadams

I thought about the formatting issue as well but I copied and pasted his code and ran the test again myself and it passed. Very strange.

1 Like

If it’s actually testing effective attributes, make sure the browser window is at 100% zoom. Beyond that, I’m stuck and could only go with your recommendation of resetting and retrying the exercise.

2 Likes

Thanks so much! 100% zoom fixed it.

Glad to hear Taffe! You can mark @chuckadams response as the “answer” for this thread as well, so people looking in the future will see it pinned at the top.

1 Like