Pete's Tribute Page

I’m having a difficult time figuring out how to responsively resize the img I have used. I’ve been banging my head against the wall trying everything I can find but nothing seems to get it to work. This is the last test item before this project is complete to so all the other code I’ve used seems to work.

So far this is what my code looks like for that area…

<div id="img-div">
  <img id="image" src = "" class= "box" alt="Doc Borlaug"> 
  <div id= "img-caption">
    <figcaption>Doc Borlaug(3 from left) and all of his friends</figcaption>

Here is a link to the codepen:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

hey there,

You need to give your image the display:block.
The default for any image is display:inline.


OMG! I knew it was something simple. Thank you for pointing that out!

1 Like