Build a Tribute Page problem 9/10 passed

Hey guys, I’m having problem with the test on the Build a tribute page. All the time I’m testing this shows: “The element should be centered within its parent element.
Image is not centered: expected 0 to be close to 765 +/- 11
AssertionError: Image is not centered: expected 0 to be close to 765 +/- 11”

I’ve tried many things and nothing fix the problem. What can i do?

my code is bellow:

Your code so far


#img-caption
{
 width: 600px;
}

#image
{
  max-width:100%;
  height: auto;
  display: block;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Challenge: Build a Tribute Page

Link to the challenge:

Can we see the full code? Linking us to your codepen would help, also.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Apparently your page passed 10/10 for me, though.

try to center your image using margin property