I type "max-width" and set to 100% but it's not working.Help;(

Tell us what’s happening:

Your code so far


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

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:

I copy and pasted your code and it passes all tests.

Try a different web browser. You may have a plugin installed that overwrites CSS.

1 Like

I see you’re using Edge. Update it to the latest Chromium version.

1 Like