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>
    <title>Tribute Page</title>
    <link rel="stlesheet" href="styles.css">
      <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 id="tribute-info">
            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.
        <a id="tribute-link" href="" target="_blank">Lear more</a>

/* file: styles.css */
  justify-content: center;
  align-items: center;

  max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ 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.