Make an Image Responsivee

Tell us what’s happening:
it says that my image tag should have a display set to block, and I do, what else do i have to do?

Your code so far


<style>
  </style>

  <img 
max-width: 100%;
display: block;
height: auto;



src="https://s3.amazonaws.com/freecodecamp/FCCStickerPack.jpg" alt="freeCodeCamp stickers set">

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10575.55.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-principles/make-an-image-responsive

I think that you might want to go back to the basic CSS beginning lessons and review how to declare styles.

2 Likes

i checked that out and still can’t figure what I am doing wrong

max-width: 100%; display: block; height: auto;

freeCodeCamp stickers set here is my code now

nvm i did it LOL thanks