Tell us what’s happening:
cannot get through the following. Please help.
16. Your img element should have a display of block.
17. Your #image should have a max-width of 100%.
19. Your #image should be centered within its parent.
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">
<title >Dr.Norman Borlaug</title>
<meta name="" content=""
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main id="main">
<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, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger">
<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>
<section id="tribute-info">
<h2>Here's a time line of Dr. Borlaug's life:<a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Read more in Wikipedia </a></h2>
</section>
</main>
</body>
</html>
/* file: styles.css */
#image{
display:block;
height:auto;
max-width: 100%;
}
#image{
margin:0 auto;
}
#img-div{
text-align: center;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Challenge Information:
Tribute Page - Build a Tribute Page