Make an Image Responsive something missing?

Tell us what’s happening:
I think I got this one right but it does not pass all green and it says " Your img tag should have a display set to block." And it is!

Your code so far


<img{ max-width:100%; 
src="" alt="freeCodeCamp stickers set">

Your browser information:

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

Link to the challenge:

It wants you to add the style between the style tags.

1 Like

Like @br3ntor has pointed out, you need to add the styles between the style tag.

To elaborate further, the last line, the line with the image URL. That is an HTML tag and to apply CSS to it, you would need to target that element in a syntactically valid way.

In other words, target the following tag (which is the image):

<img src="" alt="freeCodeCamp stickers set">

To do so, simply place the styles inside the tag:

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

Anyway hope that helps.

1 Like

Thank you guys! It`s crazy that I missed that part :frowning: Lesson learned!