Tribute page - "your image should be centered"

I am passing all the tests except for User Story #9: “your ‘#image’ should be centered within its parent”. I have spent ages trying out every response given on forums and despite my image looking centered, it doesn’t pass.

Any help would be greatly appreciated! Thanks.

Posting here too:

#img-div {
display: block;
text-align: center;
margin: 0;

img {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
border: 2em #fff solid;

The tests don’t like that border you put around #image.

Amazing, thank you so much!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.