Failing User Story #8 + #9

Hi everyone! My Tribute page is almost finished… I just need to fix up my code for User Stories #8+9. How do I align my image to center and make it responsive?

This is the code I have so far:

<div id="img-div">
      <img id="image" src= "" alt="Bethany Hamilton shredding gnarly waves">


img {
  max-width: 100%;
  height: auto;
  display: block;

Here’s my Codepen for you to check out too:

Tribute Page Codepen

Any help would be greatly appreciated!

HI @rikainocalla !

Welcome to the forum!

You first need to remove the style tags from the css section.
Style tags are html elements and do not belong in css.

Once you fix that, then you should get 9/10.

As for the failing user story, you need to research how to center and image.
I would suggest google that exact phrase and the first result will give you the answer.

Remember that a big part of these projects is learning how to research for answers :grinning:

Once you fix that, then all test will pass

try using the img-div for the CSS
and try only width not max-width

AMAZING!! All I did was remove the style tags, and I passed! Thank you so much!!

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