My image do not resize has it should

The problem is that the code seems not to be working without the tag, the image just disappear. Then if I just add it, the image isn’t responsive at all

Link to the challenge:

Is not working at all :frowning:

Do you see the image on the page? I do. You have to use CSS to make it responsive.

1 Like

Yes, I mean, the image is there and the css is right but if you resize the viewport the image do not. I’ve been looking for solutions but nothing works at the moment, try yourself, remove the <figure> tag and the image will disappear, add it again and it wont resize

under your image tag I deleted everything and added
max-width: 100%;
display: block;
and I think it worked

1 Like

Yes, it did. And discovered that another solution is to give the parent (#img-div) a size with relative units:



Thanks guys :smiley:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.