How to do this please help!

Step 90

The image you added is not centered horizontally like the Coffee heading above it. img elements are “like” inline elements.

To make the image behave like heading elements (which are block-level), create an img type selector and use the value block for the display property and use the applicable margin-left and margin-right values to center it horizontally.

Link to the challenge:

done bro it is so simple just type this:

img{
display:block;
margin-left:auto;
margin-right:auto;
}

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