Tribute Page - Build a Tribute Page

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

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html>
  <head>
    <title>Tribute Page</title>
    <link rel="stlesheet" href="styles.css">
    </head>
    <body>
      <main id="main">
        <h1 id="title">Dr Norman Borlaug</h1>
        <div id="img-div">
          <img id="image" src="image.jpg" alt="Dr Norman Bourlaug">
          <figcaption id="img-caption">Dr. Norman Borlaug receiving the Nobel Peace Prize</figcaption>
        </div>
        <div id="tribute-info">
          <p>
            Dr. Norman Borlaug was a renowned agronomist and humanitarian who revolutionized agriculture and saved millions of lives. His groundbreaking work in developing high-yield, disease-resistant wheat varieties helped alleviate hunger and improve food security around the world.
          </p>
        </div>
        <a id="tribute-link" href="https://example.com" target="_blank">Lear more</a>
        </main>
        </body>
        </html>



  
/* file: styles.css */
.img-div{
  display:flex;
  justify-content: center;
  align-items: center;
  
}

.image{
  max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      align-items:center;
}

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

What kind of issue are you having with your tribute page?

  • Your img element should have a display of block.

  • Failed:Your #image should have a max-width of 100%.
    Your #image should be centered within its parent.
    this are the errors that it shows!!

You should have an image id selector and give it a display of block,max-width of 100%, and align the text to the center.

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