Please help with user story 9 for tribute page

hello I can’t do it too

Can you be more specific about what you need help with?

The img element should be centered within its parent element.

add these properties to your image element.

display: block;
margin: 0 auto;

a display of block will turn the image into a block level element and margin 0 auto will add add equal spacing to left and right side of the image which results in centering it.

that’s not it apparently

You should add a link to your codepen here so it’s easier for others to debug your code

the step that I can’t seem to do is:
User Story #9: The img element should be centered within its parent element.

HI @dadi94230 !

Welcome to the the forum!

I have created a new post for you.
Whenever, you have a question about a project or challenge please create your own post instead of posting in somone else’s.
It becomes confusing when multiple people are asking questions for their project in the same thread. :grinning:


In your case, you need to read the full error message.

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

Once you add that to the image and not the image div then two new messages will pop up.
Open up the test suite and read the full error messages.
Once you fix those two errors than the test will pass.

A big part of these projects is learning how to read and keep reading error messages until the issue is resolved.
That is a big part of being a developer.

Hope that helps!

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