What am i doing wrong here? https://codepen.io/Naijatask/pen/Vwmwwmm

Hey guys, i just started the responsive design challenge and i still get an error after centering the img element. the error is coming from the second layout. here’s the error which still shows:

2. The element should be centered within its parent element.

how do i solve this? any tips on how to center the element? i’ve already tried this method: display:flex; justify-content:center; align-items:center;

your element is not centered with parent element
try to give a code snspshot

When tests fail click the red button to see which test(s) are failing and text to help you correct the issue.
(Be sure and read more than just the first line of the failing message.)

This one is important because you may fail one time and correct that following the text in the error message but when you run the test again it may fail again. But the text in the error message will be different so you have to follow that.

In the future you should give a link to your project so people can see what you’ve tried otherwise the best we can do is guess.

1 Like