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: