Hey,
I can’t get past step 89 in the Basic CSS freecodecamp course. My internet research showed that actually I am busy with step 90, not sure why it shows up as step 89 for me:
Step 89
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.
This is my code:
img {display:block;margin-left:block;margin-right:block;}
…and the error message I get:
Test
Sorry, your code does not pass. Hang in there.
Hint
You should use an img
selector.
Does anyone know how I can get past this? Refreshing didn’t help. Is my code wrong?