The struggle is REAL!

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

this is my code, I am trying to pass this challenge however it will not allow me to because it keeps saying " The element should be centered within its parent element." I put the code in CSS but I guess that was wrong… I don’t know…

It helps if you post the link to the challenge so we can see what’s going on!

oh my goodness i thought i posted it ugh one minute!

It looks like you are maybe working on the tribute page.
But as mentioned earlier, it would help if you posted a link to your codepen.

But also, what does the full error message say?
It looks like you are missing a css property there.
Usually the full error messages will tell you what is wrong and provide hints.

1 Like