Need help centering image

Hello I’m a beginner:
I need help positioning the image to center.
Any help please?

Your code so far

https://codepen.io/tomiwa-01/full/BaWrzBK

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.37

Challenge: Build a Tribute Page

Link to the challenge:

Hi, check out this relevant challenge from responsive web design:

1 Like

Hi @Tomiwa-01 !

Welcome to the forum!

I edited your post to remove the link from the title.
Please avoid placing links in the title since we cannot click on them.

You will also need to add the test suite to your html.

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

You are currently passing 3/10 tests.

Hi Tomiwa. I am also a beginner and had this problem. Try adding the following to your css:
margin: auto;
display: block;

img {
display: block;
margin: 0 auto;
}

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