I don't know what I am expected to do

Hello,
I am building my tribute page and I have come upon a step that I’m not really sure how I’m supposed to do. It says that the img element should be centered within its parent but it already is, it stretches across it. Here’s my code (nothing is styled so far, I was focused on completing challenges) https://codepen.io/VeljkoCukic/pen/oNjGgqz

Images are not centered by default. The image appears centered because you have given it a width of 100%. If you give it a width of 50%, will it still remain ‘centered’? no.

1 Like

You have to read the secondary text for all the tests, not just the main text.

Try using the “max-width” style property

I have fixed it, but still, the tests are not fully completed

As I said, read the secondary text in the test.

Use the “display” style property with a value of “block” for responsive images

1 Like

Yeah, I just did :sweat_smile:
Thanks!

No problem. Congrats on passing all the tests. Keep it up!