Build a Tribute Page - element should responsively resize, relative to the width

I’m getting the error:
The element should responsively resize, relative to the width of its parent element, without exceeding its original size.

I tried everything I know so far and can’t solve it.
I passed all the tests except for this one…
Any ideas?

Thanks

This is the page so far (I can’t post link, so this is The link…):
codepen . io / tefanga / pen / RvvQMB

You posted a blank template project

Hey, Fixed ! Link updated, any clues? Thanks

Apply the CSS to the image instead of the container.

#img-div > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

Edit: Don’t just copy the example project for your own project, make something new. It is OK to test with it just don’t make that your finished project.

3 Likes