I’ve been working on the first HTML/CSS project for over a month, but, to be fair, college has taken up a lot of my time. I remember submitting the project with all tests working, but now condition 2, the one I spent hours fixing, has popped up again.
I’ve checked several topics on the same problem, including text-align, float, display, transform, margin, and padding, to no avail.
I’m not sure what align-items: center; does here - you’re not display: flex;.
You have the image set at 100% width, but then add a border on top of that - I think that is putting it off center. Try a width of 80% or get rid of the border. Also, what does this mean?
The box-sizing property defines how the width and height of an element are calculated: should they include padding and borders, or not.
by default it is set to content-box, i changed the value to border-box, and the test passed, to have more information about this property you can visit the link below: