Tribute Page user story #9

Hi! I have a problem with my tribute page, I don’t know how to get test 2 in layout to pass. Here’s my code

You need to center your image. Try adding class=center to your img element.

Using grid is your problem, remove that lines and your image is centered. Your design needs to be changed a little, because tests ask for image to be centered.

1 Like

Yeah, that fixed it, kinda sad you can’t pass this test while doing it with grid

You can center it using grid actually, but since it needs to be centered, grid is unnecessary.

You are allowed to use more than one image for this project.

It is just that you need one of them to be centered inside the img div to pass the test.

You could still have other images and use grid to create a nice layout like you did.

That’s another option too.


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