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">
    <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" />
    <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=""/>
        <figcaption id="img-caption">Mrs Helen Eyeh is a Nigerian from Asaga Ohafia the best mum </figcaption>
      <div id="tribute-info">
        <h3>Here is a time-line of Helen Eyeh: </h3>
          <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 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

        <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>
        <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="">Wikipedia entry</a>.</h4>

/* 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/ 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.