Tribute Page - Build a Tribute Page

My this last one case not paassing why pls tell \

Your #image should be centered within its parent. this one case not passing i don’t pls tell the issue

Your code so far

<!-- file: index.html -->
!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="freeCodeCamp Tribute page" />
    <title id="title">Tribute Page for Mrs Helen Eyeh</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <main id="main">
      <h1 id="title">Tribute Page for Mrs Helen Eyeh</h1>
      <p>My Proverbs 31 Woman</p>
      <div id="img-div">
        <img id="image"src="https://scontent-los2-1.xx.fbcdn.net/v/t1.6435-9/119130713_344867140225008_9083384455253558510_n.jpg?stp=dst-jpg_s600x600&_nc_cat=100&ccb=1-7&_nc_sid=8bfeb9&_nc_ohc=QjSObygkhdkAX-703Ya&tn=zrU10Fe895gqr5R4&_nc_ht=scontent-los2-1.xx&oh=00_AT8gUTBZMuULrVThgpbuQNiIIRTQa8wNnVbWSIrfbpnR9g&oe=63698D5A"/>
        <figcaption id="img-caption">Mrs Helen Eyeh is a Nigerian from Asaga Ohafia the best mum </figcaption>
      </div>
      <div id="tribute-info">
        <h3>Here is a time-line of Helen Eyeh: </h3>
        <ul>
          <li><strong>1965</strong> - Born in Nsukka, Nigeria</li>
          <li><strong>1980</strong> - Leaves her family's farm to attend the University of Nsukka, thanks to a Depression era program known as the "National Youth Administration"</li>
          <li><strong>1982</strong> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", she said. "All of this left scars on me."</li>
          <li><strong>1984</strong> Finishes university and takes a job in the US Forestry Service</li>
          <li><strong>1991</strong> Marries husband of 53 years Sylvanus Eyeh. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, she returns to school study under Stakman, who teaches her about breeding pest-resistent plants.</li>
          <li><strong>1993</strong> Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.</li>
          <li><strong>1995</strong> Receives a Ph.D.in Genetics and Plant Pathology</li>
          <li><strong>1997</strong>- Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li>
          <li><strong>1998</strong> Discovers a way to grown wheat twice each season, doubling wheat yields</li>
          <li><strong>2001</strong> crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.</li>
          <li><strong>2005</strong> Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li>
          <li><strong>2008</strong> Receives the Nobel Peace Prize</li>
          <li><strong>2010</strong> Helps seven African countries dramatically increase their maize and sorghum yields</li>
          <li><strong>2022</strong> Dies at 59
        </ul>

        <i>"Helen's life and achievement are testimony to the far-reach and scientific vision can make to human peace and progress.i><br></br>
        <i>-- Nigerian's Prime Minister Manmohan Singh</i>
        </div>
        <h4 id="tribute-info">If you have time, you should read more about this incredible human being on his <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Norman_Borlaug">Wikipedia entry</a>.</h4>
  
        </main>
        
  </body>

/* file: styles.css */
#image {
  display: block;
  max-width: 100%;
  height: auto;
}

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

1 Like

Is this the whole CSS code?

yes bro it the only code and all other case passing accept the last one

Your #image should be centered within its parent.

I found the same problem elsewhere, check it, the link is below.

Try adding ‘margin: 0 auto;’ , I am thinking that you just need to auto align your image horizontally inside a container and this is one way to do it. I hope this works.

thanks bro what a saver
once again thanks brother

1 Like

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