Iv been doing this for the last 3 hours!! no past post has any clear answers everyone seems to not agree on one solution yet somehow all never work !!
iv Added and removed elements on the code to just have the requirements and still getting an error. Iv changed the names the tags everything like 10 times!! it seems as tho other people getting help are replying back with “that didnt work” pretty often
Your #image should be centered within its parent.
-Your #image should have a max-width of 100%.
-Your img element should have a display of block.
Your code so far
<html>
<head>
<meta charset="UTF-8" />
<meta name="Viewport" content="width=device-width, initial-scale=1.0" />
<title>Tribubte Page</title>
<link rel="stylesheet" href="style.css">
</head>
<main id="main">
<div class="card">
<h1 id="title">Dr. Norman Borlaug</h1>
<p>The man who saved a billion lives</p>
<figure id="img-div">
<img id="image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg" alt="Dr. Norman Borlaug seen standing in Mexican wheat field with a group of biologists"></a>
<div class="img-caption">
<figcaption id="img-caption">
<b>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.</b>
</figcaption>
</div>
</figure>
</div>
<div class="h3-box" id="h3-box">
<h3>
Here's a time line of Dr. Borlaug's life:
</h3>
</div>
<ul id="tribute-info">
<li>
1914 - Born in Cresco, Iowa
</li>
<li>
1933 - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"
</li>
<li>
1935 - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."
</li>
<li>
1937 - Finishes university and takes a job in the US Forestry Service
</li>
<li>
1938 - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.
</li>
<li>
1941 - 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>
1942 - Receives a Ph.D. in Genetics and Plant Pathology
</li>
<li>
1944 - 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>
1945 - Discovers a way to grown wheat twice each season, doubling wheat yields1953 - 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>
1953 - 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>
</ul>
<footer class="footer">
<a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wiki Info</a>
</footer>
</html>
</main>
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
changed it to 100% still error on all 3. I used the Validator tool and it doesn’t tell me much other than give me red code and doesn’t say what needs to be fixed unless it means all of it.
<html>
<head>
<meta charset="UTF-8" />
<meta name="Viewport" content="width=device-width, initial-scale=1.0" />
<title>Tribubte Page</title>
<link rel="stylesheet" href="style.css">
</head>
<main id="main">
<div class="card">
<h1 id="title">Dr. Norman Borlaug</h1>
<p>The man who saved a billion lives</p>
<figure id="img-div">
<img id="image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg" alt="Dr. Norman Borlaug seen standing in Mexican wheat field with a group of biologists"></a>
<div class="img-caption">
<figcaption id="img-caption">
<b>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.</b>
</figcaption>
</div>
</figure>
</div>
<div class="h3-box" id="h3-box">
<h3>
Here's a time line of Dr. Borlaug's life:
</h3>
</div>
<ul id="tribute-info">
<li>
1914 - Born in Cresco, Iowa
</li>
<li>
1933 - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"
</li>
<li>
1935 - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."
</li>
<li>
1937 - Finishes university and takes a job in the US Forestry Service
</li>
<li>
1938 - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.
</li>
<li>
1941 - 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>
1942 - Receives a Ph.D. in Genetics and Plant Pathology
</li>
<li>
1944 - 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>
1945 - Discovers a way to grown wheat twice each season, doubling wheat yields1953 - 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>
1953 - 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>
</ul>
<footer class="footer">
<a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wiki Info</a>
</footer>
</html>
</main>
Thank God , I hate this so much its always that one little thing. i took a break from coding for a few months and Jeez iv got some practicing to do. Thank YOU