Getting Error for Responsive Web Design Principles: Make an Image Responsive

Tell us what’s happening:
It looks like a very simple code but the test keeps giving an error.
The error is: Your responsive-img class should have a max-width set to 100% .

Your code so far


<style>
.responsive-img {
max-width: 100%;
height: auto;
}

img {
width: 600px;
}
</style>

<img class="responsive-img" src="https://s3.amazonaws.com/freecodecamp/FCCStickerPack.jpg" alt="freeCodeCamp stickers set">
<img src="https://s3.amazonaws.com/freecodecamp/FCCStickerPack.jpg" alt="freeCodeCamp stickers set">

Your browser information:

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

Challenge: Make an Image Responsive

Link to the challenge:

Hello!

Your code passed for me. It looks like you are using the Edge browser? If so, I recommend attempting this challenge in Chrome or Firefox, as Edge is a known incompatibility issue. Chrome is, as far as I know, the officially supported browser for FCC.

1 Like

Ah I see. Thank you so much!