my code : https://codepen.io/jozzo/pen/dyVYQWP
task : https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-tribute-page
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.
i spent alot of time just in this specific rule . if you can give me another hint i will do appreciate it .
but can you plz explain what you were talking about ?
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.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.