Element centering help

I can’t seem pass the final test of centering my img element to its parent element. Not sure what I’m doing wrong.
codepen:


tribute page project:
https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-tribute-page.
Thank you

you should try adding “display: block;” to the img-div and image id selector. img tags are inline elements

1 Like