i did my best but it always showing me ‘’ The img element should responsively resize, relative to the width of its parent element, without exceeding its original size. ‘’
What’s most important from the error message is the first line in the stack error (the box). Follow the hints. I did follow the hints and it only took me 3 steps to make it pass the spec. “Expected x to equal y” => x is what you have, y is what the spec wants.
If you revert back, the first line of the stack error messages asked you to do:
set img element display to block instead of inline
expecting img height 80% to equal auto
expecting img width to equal auto
Not all at once, they popped up one after another once we did what it wanted.
And what you did with that stackoverflow reference do what it wanted, in a way.