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 lang="en">
<head>
  <meta charset="utf-8">
  <title>Tribute Page</title>
  </head>
  <body>
    <main id="main">
      <header id="title">
        <h1>Dr. Norman Borlaug</h1>
        <p>The man who saved a billion lives</p>
      </header>
      <div id="img-div">
        <img id="image">
        <figcaption id="img-caption">Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.</figcaption>
      </div>
      <div id="tribute-info"><h3>Here's a time line of Dr. Borlaug's life:</h3></div>
      
      <a id="tribute-link" href="" target="_blank"
    </main>
  </body>

</html>
/* file: styles.css */
#image{
display: block;
max-width: 100%;
height: auto;
justify-content: center;
}

  **Your browser information:**

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

I am following the instructions carefully even though test are not passing

Can you be more specific? What tests are not passing? What did you try to fix them?

Last, 3rd last and 4th last test cases are not passing

  1. Display property of img element should be block
  2. #image should have max-width of 100%
  3. #image should be centered within its parent

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