Still having issues with tribute page

Hello guys,

I need help with what to do about the error I’m getting. Please help. It says that
The element should responsively resize, relative to the width of its parent element, without exceeding its original size.

Use the “height” style property with a value of “auto” for responsive images.: expected ‘259px’ to equal ‘auto’ AssertionError: Use the “height” style property with a value of “auto” for responsive images.: expected ‘259px’ to equal ‘auto’

https://codepen.io/Mackdine/pen/WNeaLmG?editors=1100

Where is the error? I can’t find it.

Hello @Mackdine,

Check your img tag in HTML. It has fixed height and width:

style="width:460px;height:259px"

Simply remove it and everything will work.

1 Like

Hi @Mackdine,

You have the right CSS however your image tag in HTML has an inline style that override your CSS, try removing style="width:460px;height:259px" in your <img id="image" src="https://cdn.cnn.com/cnnnext/dam/assets/160503105914-tupac-and-afeni-shakur-restricted-large-169.jpg" alt="Afeni Shakur laughing with her son Tupac" style="width:460px;height:259px" />.

Hope this helps!

2 Likes