Build a Tribute Page Layout not responsive

Tell us what’s happening:
I cannot understand what is wrong with my code and i always take 9 out of 10 .
It says that “1. The element should responsively resize, relative to the width of its parent element, without exceeding its original size.”

My codepen is https://codepen.io/dimppt/pen/WgrepW

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-tribute-page

All the tests for me. If it’s not passing one of the test cases for you.

Try applying styles you defined for #image to your img instead of its container.

1 Like

I made some improvements and now the tests are ok! But the image is not responsive…
I cannot understand.

What I mean is you have

max-width: 100%;
height: auto;

in your #image. But move these attributes to your img element (child element) instead of its container.

Thank you very much! @shimphillip