Tribute Page Project - Cannot get image center test to pass

The image looks centered to me, and I have tried multiple methods suggested by other similar threads, but I just cannot get the test to pass. Any help would be greatly appreciated, thanks.


Hello @eucalyptus welcome to the forum! I’ve seen your website. Great job! The problem that doesn’t let you pass the test is that your img should have parent element in other words it should be nested. Hope this helps. Below is the message from the test. Generally you did everything correct, however there is a small request from the test, which must be done in order to pass the test! Good luck!

The element should be centered within its parent element.

1 Like

Thank you so much, it worked.

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