Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.

Your code so farwhat is causing my image not to display in block and not take max-width 100%

<!-- file: index.html -->
<style>
body{
  background-color:black;
  color:white;
  font-family:calibre;
}
  </style>
<main id="main">
<h1 id="title"> Prof.Wangari Maathai-a true environmentalist</h1>
<div id="img-div">
 <img div="image" src="https://images.app.goo.gl/qnJ7371rbiuTbtZJ7" alt="picture of prof wangari maathai" width="20%" height="20%">
 <img id="image">prof wangari maathai- nobel prize winner
 <a id="tribute-link" target="_blank" href="https://images.app.goo.gl/qnJ7371rbiuTbtZJ7">
 </a>
 <img id="image">prof wangari maathai-a true heroin

 <figcaption id="img-caption">prof wangari maathai holding a tree seedling</figcaption>
  </imgdiv>
  <p id="tribute-info">
    <b>prof wangari Attributes:</b>
    <li>Determined</li>
    <li>Visionary leader</li>
    <li>Conservative</li>
    </p>
</main>



  
/* file: styles.css */




#img-caption
{
  width:400px;
}
#image
{
 max-width:100%;
  height:auto;
  display:block;
}

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Hi there,

The css code you have in the index.html should be moved into styles.css

And you need to create in index.html a head element with a link to your stylesheet there.

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